diff src/video/win32/SDL_win32window.c @ 4948:6546eaa20271

Fixed crash on Windows XP
author Sam Lantinga <slouken@libsdl.org>
date Mon, 03 Jan 2011 14:39:41 -0800
parents 716b2cbf4c9e
children c8f11c4ced7d
line wrap: on
line diff
--- a/src/video/win32/SDL_win32window.c	Sat Jan 01 20:46:39 2011 -0800
+++ b/src/video/win32/SDL_win32window.c	Mon Jan 03 14:39:41 2011 -0800
@@ -145,7 +145,9 @@
     }
 
 	/* Enable multi-touch */
-	videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM));
+    if (videodata->RegisterTouchWindow) {
+        videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM));
+    }
 
     /* All done! */
     window->driverdata = data;
@@ -642,5 +644,4 @@
     }
 }
 
-
 /* vi: set ts=4 sw=4 expandtab: */