- Fix msvc build.

svn path=/trunk/; revision=60864
This commit is contained in:
James Tabor 2013-11-04 02:54:21 +00:00
parent 49c64a52dd
commit 745c57ba70

View file

@ -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;