- Fix msvc build.
authorJames Tabor <james.tabor@reactos.org>
Mon, 4 Nov 2013 02:54:21 +0000 (02:54 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 4 Nov 2013 02:54:21 +0000 (02:54 +0000)
svn path=/trunk/; revision=60864

reactos/win32ss/user/user32/windows/message.c

index 5f81d81..f1eeae2 100644 (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;