# HG changeset patch # User Sam Lantinga # Date 1294094381 28800 # Node ID 6546eaa20271f99b8f524b90adfd944d0cd9c03a # Parent 619884e8a7140273421e9829f8037c8acdb557ad Fixed crash on Windows XP diff -r 619884e8a714 -r 6546eaa20271 src/video/win32/SDL_win32window.c --- 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: */