Handle NULL point in fake_GetCursorPos

This commit is contained in:
Toni Spets 2011-09-11 19:09:15 +03:00
parent 049d826473
commit f02ef15bc4

View file

@ -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;
}