Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Patched to compile (I hope).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 27, 2011
1 parent 07e0ccb commit 3fa7b7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/video/windows/SDL_windowswindow.c
Expand Up @@ -640,9 +640,11 @@ WIN_DestroyWindow(_THIS, SDL_Window * window)
/* Restore any original event handler... */
if (data->wndproc != NULL) {
#ifdef GWLP_WNDPROC
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) data->wndproc);
SetWindowLongPtr(data->hwnd, GWLP_WNDPROC,
(LONG_PTR) data->wndproc);
#else
SetWindowLong(hwnd, GWL_WNDPROC, (LONG_PTR) data->wndproc);
SetWindowLong(data->hwnd, GWL_WNDPROC,
(LONG_PTR) data->wndproc);
#endif
}
}
Expand Down

0 comments on commit 3fa7b7d

Please sign in to comment.