[ros-diffs] [fireball] 47395: - 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.
fireball at svn.reactos.org
fireball at svn.reactos.org
Sat May 29 10:24:26 CEST 2010
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/win32k/eng/device.c?rev=47395&r1=47394&r2=47395&view=diff
==============================================================================
--- 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,
More information about the Ros-diffs
mailing list