Do only dereference the desktop window if the handle was valid in IntMouseInput.

svn path=/trunk/; revision=14445
This commit is contained in:
Hartmut Birr 2005-04-02 16:13:11 +00:00
parent c5fcba3366
commit b82d7998fa

View file

@ -611,8 +611,8 @@ IntMouseInput(MOUSEINPUT *mi)
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;