Commit 58faae48 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Patched to compile (I hope).

parent d8d48537
...@@ -640,9 +640,11 @@ WIN_DestroyWindow(_THIS, SDL_Window * window) ...@@ -640,9 +640,11 @@ WIN_DestroyWindow(_THIS, SDL_Window * window)
/* Restore any original event handler... */ /* Restore any original event handler... */
if (data->wndproc != NULL) { if (data->wndproc != NULL) {
#ifdef GWLP_WNDPROC #ifdef GWLP_WNDPROC
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) data->wndproc); SetWindowLongPtr(data->hwnd, GWLP_WNDPROC,
(LONG_PTR) data->wndproc);
#else #else
SetWindowLong(hwnd, GWL_WNDPROC, (LONG_PTR) data->wndproc); SetWindowLong(data->hwnd, GWL_WNDPROC,
(LONG_PTR) data->wndproc);
#endif #endif
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment