fix msvc build
authorChristoph von Wittich <christoph_vw@reactos.org>
Thu, 8 Jan 2009 19:08:47 +0000 (19:08 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Thu, 8 Jan 2009 19:08:47 +0000 (19:08 +0000)
svn path=/trunk/; revision=38649

reactos/base/applications/screensavers/logon/logon.c

index 001aa12..0cee6ba 100644 (file)
@@ -81,13 +81,16 @@ ScreenSaverProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
                {
              BITMAP bm; /* Bitmap structure as seen in bmWidth & bmHeight */ 
              PAINTSTRUCT ps; 
+             HDC hdc;
+             HDC hdcMem;
+             HBITMAP hbmOld;
 
              // Obtain window coordinates.
              GetClientRect (hWnd, &rect);
 
-             HDC hdc = BeginPaint(hWnd, &ps); 
-             HDC hdcMem = CreateCompatibleDC(hdc); 
-             HBITMAP hbmOld = SelectObject(hdcMem, bitmap); 
+             hdc = BeginPaint(hWnd, &ps); 
+             hdcMem = CreateCompatibleDC(hdc); 
+             hbmOld = SelectObject(hdcMem, bitmap); 
 
              GetObject(bitmap, sizeof(bm), &bm);