src/video/win32/SDL_win32window.c
branchgsoc2008_force_feedback
changeset 2581 a1c00531ee00
parent 2580 64fa227c01ce
child 2582 9f0f0a532343
--- a/src/video/win32/SDL_win32window.c	Mon Aug 04 11:22:01 2008 +0000
+++ b/src/video/win32/SDL_win32window.c	Mon Aug 04 11:29:19 2008 +0000
@@ -420,18 +420,18 @@
 int
 SDL_HelperWindowCreate(void)
 {
-   HINSTANCE hInstance = pGetModuleHandleA(NULL);
+   HINSTANCE hInstance = GetModuleHandleA(NULL);
    const char *class_name = "SDLHelperWindowInputCatcher";
    const char *win_name = "SDLHelperWindowInputMsgWindow";
    WNDCLASSEX wce;
 
    ZeroMemory(&wce, sizeof (wce));
    wce.cbSize = sizeof(WNDCLASSEX);
-   wce.lpfnWndProc = RawWndProc;
+   wce.lpfnWndProc = NULL;
    wce.lpszClassName = class_name;
    wce.hInstance = hInstance;
 
-   SDL_HelperWindow = pCreateWindowExA(0, class_name, win_name, WS_OVERLAPPEDWINDOW,
+   SDL_HelperWindow = CreateWindowExA(0, class_name, win_name, WS_OVERLAPPEDWINDOW,
          CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
          CW_USEDEFAULT, HWND_MESSAGE, NULL, hInstance, NULL);
 
@@ -451,7 +451,7 @@
 SDL_HelperWindowDestroy(void)
 {
    if (SDL_HelperWindow) {
-      pDestroyWindow(SDL_HelperWindow);
+      DestroyWindow(SDL_HelperWindow);
       SDL_HelperWindow = NULL;
    }
 }