mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
- Fix msvc build.
svn path=/trunk/; revision=60864
This commit is contained in:
parent
49c64a52dd
commit
745c57ba70
|
@ -577,8 +577,9 @@ MsgiAnsiToUnicodeMessage(HWND hwnd, LPMSG UnicodeMsg, LPMSG AnsiMsg)
|
||||||
case WM_GETTEXT:
|
case WM_GETTEXT:
|
||||||
case WM_ASKCBFORMATNAME:
|
case WM_ASKCBFORMATNAME:
|
||||||
{
|
{
|
||||||
|
LPWSTR Buffer;
|
||||||
if (!AnsiMsg->lParam) break;
|
if (!AnsiMsg->lParam) break;
|
||||||
LPWSTR Buffer = RtlAllocateHeap(GetProcessHeap(), 0, AnsiMsg->wParam * sizeof(WCHAR));
|
Buffer = RtlAllocateHeap(GetProcessHeap(), 0, AnsiMsg->wParam * sizeof(WCHAR));
|
||||||
if (!Buffer) return FALSE;
|
if (!Buffer) return FALSE;
|
||||||
UnicodeMsg->lParam = (LPARAM)Buffer;
|
UnicodeMsg->lParam = (LPARAM)Buffer;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue