src/video/windows/SDL_windowswindow.c
changeset 5581 f40f9d3ca2bc
parent 5580 0c407e6d14a9
child 5980 612b41c44af1
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Mon Jul 25 15:03:42 2011 -0700
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Wed Jul 27 18:07:40 2011 -0400
     1.3 @@ -640,9 +640,11 @@
     1.4              /* Restore any original event handler... */
     1.5              if (data->wndproc != NULL) {
     1.6  #ifdef GWLP_WNDPROC
     1.7 -                SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) data->wndproc);
     1.8 +                SetWindowLongPtr(data->hwnd, GWLP_WNDPROC,
     1.9 +                                 (LONG_PTR) data->wndproc);
    1.10  #else
    1.11 -                SetWindowLong(hwnd, GWL_WNDPROC, (LONG_PTR) data->wndproc);
    1.12 +                SetWindowLong(data->hwnd, GWL_WNDPROC,
    1.13 +                              (LONG_PTR) data->wndproc);
    1.14  #endif
    1.15              }
    1.16          }