mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Fix msvc build.
svn path=/trunk/; revision=60864
This commit is contained in:
parent
49c64a52dd
commit
745c57ba70
1 changed files with 2 additions and 1 deletions
|
@ -577,8 +577,9 @@ MsgiAnsiToUnicodeMessage(HWND hwnd, LPMSG UnicodeMsg, LPMSG AnsiMsg)
|
|||
case WM_GETTEXT:
|
||||
case WM_ASKCBFORMATNAME:
|
||||
{
|
||||
LPWSTR Buffer;
|
||||
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;
|
||||
UnicodeMsg->lParam = (LPARAM)Buffer;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue