Fixed crash on Windows XP
authorSam Lantinga <slouken@libsdl.org>
Mon, 03 Jan 2011 14:39:41 -0800
changeset 49486546eaa20271
parent 4947 619884e8a714
child 4949 68da5a234bba
Fixed crash on Windows XP
src/video/win32/SDL_win32window.c
     1.1 --- a/src/video/win32/SDL_win32window.c	Sat Jan 01 20:46:39 2011 -0800
     1.2 +++ b/src/video/win32/SDL_win32window.c	Mon Jan 03 14:39:41 2011 -0800
     1.3 @@ -145,7 +145,9 @@
     1.4      }
     1.5  
     1.6  	/* Enable multi-touch */
     1.7 -	videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM));
     1.8 +    if (videodata->RegisterTouchWindow) {
     1.9 +        videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM));
    1.10 +    }
    1.11  
    1.12      /* All done! */
    1.13      window->driverdata = data;
    1.14 @@ -642,5 +644,4 @@
    1.15      }
    1.16  }
    1.17  
    1.18 -
    1.19  /* vi: set ts=4 sw=4 expandtab: */