Author: fireball Date: Sat May 29 10:24:25 2010 New Revision: 47395
URL: http://svn.reactos.org/svn/reactos?rev=47395&view=rev Log: - Initialize (hide) mouse pointer right after creating the primary surface. Fixes a possible crash when the cursor was moved and only then cursor icon was set.
Modified: branches/arwinss/reactos/subsystems/win32/win32k/eng/device.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/eng/device.c URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32... ============================================================================== --- branches/arwinss/reactos/subsystems/win32/win32k/eng/device.c [iso-8859-1] (original) +++ branches/arwinss/reactos/subsystems/win32/win32k/eng/device.c [iso-8859-1] Sat May 29 10:24:25 2010 @@ -543,6 +543,9 @@
/* attach monitor */ AttachMonitor(&PrimarySurface, PrimarySurface.DisplayNumber); + + /* Initialize mouse pointer */ + RosUserSetCursor(NULL);
/* Put the pointer in the center of the screen */ RosUserSetCursorPos((SurfaceRect.right - SurfaceRect.left) / 2,