Handle NULL point in fake_GetCursorPos
This commit is contained in:
parent
049d826473
commit
f02ef15bc4
1 changed files with 5 additions and 2 deletions
7
mouse.c
7
mouse.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue