1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

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

@ -2,7 +2,7 @@
#define vxstr(a,b,c,d) str(a##.##b##.##c##.##d) #define vxstr(a,b,c,d) str(a##.##b##.##c##.##d)
#define str(s) #s #define str(s) #s
#define VERSION 1,1,9,0 #define VERSION 1,1,9,1
1 VERSIONINFO 1 VERSIONINFO
FILEVERSION VERSION FILEVERSION VERSION

View File

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