diff --git a/mouse.c b/mouse.c index 64f1d49..f5e98f4 100644 --- a/mouse.c +++ b/mouse.c @@ -76,8 +76,11 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint) } } - lpPoint->x = (int)ddraw->cursor.x; - lpPoint->y = (int)ddraw->cursor.y; + if (lpPoint) + { + lpPoint->x = (int)ddraw->cursor.x; + lpPoint->y = (int)ddraw->cursor.y; + } return TRUE; }