src/video/windows/SDL_windowswindow.c
changeset 5581 f40f9d3ca2bc
parent 5580 0c407e6d14a9
child 5980 612b41c44af1
equal deleted inserted replaced
5580:0c407e6d14a9 5581:f40f9d3ca2bc
   638             DestroyWindow(data->hwnd);
   638             DestroyWindow(data->hwnd);
   639         } else {
   639         } else {
   640             /* Restore any original event handler... */
   640             /* Restore any original event handler... */
   641             if (data->wndproc != NULL) {
   641             if (data->wndproc != NULL) {
   642 #ifdef GWLP_WNDPROC
   642 #ifdef GWLP_WNDPROC
   643                 SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) data->wndproc);
   643                 SetWindowLongPtr(data->hwnd, GWLP_WNDPROC,
   644 #else
   644                                  (LONG_PTR) data->wndproc);
   645                 SetWindowLong(hwnd, GWL_WNDPROC, (LONG_PTR) data->wndproc);
   645 #else
       
   646                 SetWindowLong(data->hwnd, GWL_WNDPROC,
       
   647                               (LONG_PTR) data->wndproc);
   646 #endif
   648 #endif
   647             }
   649             }
   648         }
   650         }
   649         SDL_free(data);
   651         SDL_free(data);
   650     }
   652     }