Handle NULL point in fake_GetCursorPos
This commit is contained in:
parent
049d826473
commit
f02ef15bc4
1 changed files with 5 additions and 2 deletions
3
mouse.c
3
mouse.c
|
@ -76,8 +76,11 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lpPoint)
|
||||||
|
{
|
||||||
lpPoint->x = (int)ddraw->cursor.x;
|
lpPoint->x = (int)ddraw->cursor.x;
|
||||||
lpPoint->y = (int)ddraw->cursor.y;
|
lpPoint->y = (int)ddraw->cursor.y;
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue