Author: akhaldi
Date: Thu Oct 31 17:45:16 2013
New Revision: 60810
URL:
http://svn.reactos.org/svn/reactos?rev=60810&view=rev
Log:
[USER32]
* Fix MSVC build.
Modified:
trunk/reactos/win32ss/user/user32/windows/font.c
Modified: trunk/reactos/win32ss/user/user32/windows/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/font.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/font.c [iso-8859-1] Thu Oct 31 17:45:16
2013
@@ -218,9 +218,12 @@
{
LONG ret;
UINT cp = GdiGetCodePage( hDC ); // CP_ACP
- DWORD len = MultiByteToWideChar(cp, 0, lpString, nCount, NULL, 0);
+ DWORD len;
+ LPWSTR strW;
+
+ len = MultiByteToWideChar(cp, 0, lpString, nCount, NULL, 0);
if (!len) return 0;
- LPWSTR strW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
+ strW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
if (!strW) return 0;
MultiByteToWideChar(cp, 0, lpString, nCount, strW, len);
ret = GetTabbedTextExtentW(hDC, strW, len, nTabPositions, lpnTabStopPositions);