1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

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