fix crash on game exit (warcraft 2)
This commit is contained in:
parent
f7cdde52ee
commit
f1718cfd05
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue