changeset 4735:8568ebdb5f1f

Added else to make things clear.
author dewyatt
date Wed, 09 Jun 2010 21:36:32 -0400
parents 0c7c67d4e6ee
children 92b32826da12
files src/video/win32/SDL_win32window.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */
     {