user32: Initialize clip rectangle on first use.

This commit is contained in:
Vitaliy Margolen 2006-12-29 12:31:08 -07:00 committed by Alexandre Julliard
parent f9e5c12019
commit f9f6a4d5da
1 changed files with 3 additions and 0 deletions

View File

@ -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 );
}