comparison 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
comparison
equal deleted inserted replaced
3195:08747e24a50f 3196:413672b09bb3
640 int 640 int
641 SDL_HelperWindowCreate(void) 641 SDL_HelperWindowCreate(void)
642 { 642 {
643 HINSTANCE hInstance = GetModuleHandle(NULL); 643 HINSTANCE hInstance = GetModuleHandle(NULL);
644 WNDCLASS wce; 644 WNDCLASS wce;
645 HWND hWndParent = NULL;
645 646
646 /* Make sure window isn't created twice. */ 647 /* Make sure window isn't created twice. */
647 if (SDL_HelperWindow != NULL) { 648 if (SDL_HelperWindow != NULL) {
648 return 0; 649 return 0;
649 } 650 }
660 SDL_SetError("Unable to create Helper Window Class: error %d.", 661 SDL_SetError("Unable to create Helper Window Class: error %d.",
661 GetLastError()); 662 GetLastError());
662 return -1; 663 return -1;
663 } 664 }
664 665
665 HWND hWndParent = NULL;
666 #ifndef _WIN32_WCE 666 #ifndef _WIN32_WCE
667 /* WinCE doesn't have HWND_MESSAGE */ 667 /* WinCE doesn't have HWND_MESSAGE */
668 hWndParent = HWND_MESSAGE; 668 hWndParent = HWND_MESSAGE;
669 #endif 669 #endif
670 670