[ros-diffs] [hbirr] 14445: Do only dereference the desktop window if the handle was valid in IntMouseInput.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Sat Apr 2 18:13:14 CEST 2005


Do only dereference the desktop window if the handle was valid in
IntMouseInput.
Modified: trunk/reactos/subsys/win32k/ntuser/input.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/input.c
--- trunk/reactos/subsys/win32k/ntuser/input.c	2005-04-02 15:58:25 UTC
(rev 14444)
+++ trunk/reactos/subsys/win32k/ntuser/input.c	2005-04-02 16:13:11 UTC
(rev 14445)
@@ -611,8 +611,8 @@

         MousePos.x = DesktopWindow->ClientRect.right - 1;
       if(MousePos.y >= DesktopWindow->ClientRect.bottom)
         MousePos.y = DesktopWindow->ClientRect.bottom - 1;
+      ObmDereferenceObject(DesktopWindow);
     }
-    ObmDereferenceObject(DesktopWindow);
 
     if(MousePos.x < 0)
       MousePos.x = 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050402/b33b91da/attachment.html


More information about the Ros-diffs mailing list