Added else to make things clear.
authordewyatt
Wed, 09 Jun 2010 21:36:32 -0400
changeset 4735 8568ebdb5f1f
parent 4734 0c7c67d4e6ee
child 4736 92b32826da12
Added else to make things clear.
src/video/win32/SDL_win32window.c
--- a/src/video/win32/SDL_win32window.c	Wed Jun 09 00:03:54 2010 -0400
+++ b/src/video/win32/SDL_win32window.c	Wed Jun 09 21:36:32 2010 -0400
@@ -115,7 +115,9 @@
     if (data->wndproc == WIN_WindowProc) {
         data->wndproc = NULL;
     }
-    SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc);
+    else {
+        SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) WIN_WindowProc);
+    }
 
     /* Fill in the SDL window with the window data */
     {