- don't return without UserLeave, should fix user32:input winetest crash
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 23 May 2009 13:15:47 +0000 (13:15 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 23 May 2009 13:15:47 +0000 (13:15 +0000)
svn path=/trunk/; revision=41074

reactos/subsystems/win32/win32k/ntuser/ntstubs.c

index dd8bd66..e7d573b 100644 (file)
@@ -309,6 +309,7 @@ NtUserGetMouseMovePointsEx(
 
    if ((cbSize != sizeof(MOUSEMOVEPOINT)) || (nBufPoints < 0) || (nBufPoints > 64))
    {
+      UserLeave();
       SetLastWin32Error(ERROR_INVALID_PARAMETER);
       return -1;
    }