mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[USER32]
* Fix MSVC build. svn path=/trunk/; revision=60810
This commit is contained in:
@@ -218,9 +218,12 @@ GetTabbedTextExtentA(
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user