From 6c424f7832da202bc81e962faa7e48f136dd8deb Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 5 Jul 2012 22:35:06 +0000 Subject: [PATCH] - Fix MSC build. svn path=/trunk/; revision=56842 --- reactos/win32ss/user/user32/windows/defwnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/user/user32/windows/defwnd.c b/reactos/win32ss/user/user32/windows/defwnd.c index 4427bd964fc..340c709acf5 100644 --- a/reactos/win32ss/user/user32/windows/defwnd.c +++ b/reactos/win32ss/user/user32/windows/defwnd.c @@ -1216,6 +1216,7 @@ User32DefWindowProc(HWND hWnd, case WM_PAINT: { PAINTSTRUCT Ps; + HDC hDC; /* If already in Paint and Client area is not empty just return. */ if (pWnd->state2 & WNDS2_STARTPAINT && !IsRectEmpty(&pWnd->rcClient)) @@ -1224,7 +1225,7 @@ User32DefWindowProc(HWND hWnd, return 0; } - HDC hDC = BeginPaint(hWnd, &Ps); + hDC = BeginPaint(hWnd, &Ps); if (hDC) { HICON hIcon;