mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
user32: Initialize clip rectangle on first use.
This commit is contained in:
parent
f9e5c12019
commit
f9f6a4d5da
@ -1577,6 +1577,9 @@ BOOL WINAPI ClipCursor( const RECT *rect )
|
||||
*/
|
||||
BOOL WINAPI GetClipCursor( RECT *rect )
|
||||
{
|
||||
/* If this is first time - initialize the rect */
|
||||
if (IsRectEmpty( &CURSOR_ClipRect )) ClipCursor( NULL );
|
||||
|
||||
return CopyRect( rect, &CURSOR_ClipRect );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user