- don't return without UserLeave, should fix user32:input winetest crash
[reactos.git] / 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;
    }