fix crash on game exit (warcraft 2)

This commit is contained in:
FunkyFr3sh 2018-08-19 01:01:12 +02:00
parent f7cdde52ee
commit f1718cfd05
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
{
POINT pt, realpt;
if (!GetCursorPos(&pt))
if (!GetCursorPos(&pt) || !ddraw)
return FALSE;
realpt.x = pt.x;