diff src/video/win32/SDL_win32window.c @ 3196:413672b09bb3

Fixed some compile errors and warnings under Visual C++
author Sam Lantinga <slouken@libsdl.org>
date Fri, 12 Jun 2009 08:41:48 +0000
parents 6338b7f2d024
children 59ff7a2beb57
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c	Thu Jun 11 20:08:33 2009 +0000
+++ b/src/video/win32/SDL_win32window.c	Fri Jun 12 08:41:48 2009 +0000
@@ -642,6 +642,7 @@
 {
     HINSTANCE hInstance = GetModuleHandle(NULL);
     WNDCLASS wce;
+    HWND hWndParent = NULL;
 
     /* Make sure window isn't created twice. */
     if (SDL_HelperWindow != NULL) {
@@ -662,7 +663,6 @@
         return -1;
     }
 
-    HWND hWndParent = NULL;
 #ifndef _WIN32_WCE
     /* WinCE doesn't have HWND_MESSAGE */
     hWndParent = HWND_MESSAGE;