Set correct error value on failure in NtUserSetCursor. Patch by Victor Martinez.

svn path=/trunk/; revision=50392
This commit is contained in:
Timo Kreuzer 2011-01-15 19:42:56 +00:00
parent 6ecbc52144
commit fb49d55fda

View file

@ -869,7 +869,7 @@ NtUserSetCursor(
pcurNew = UserGetCurIconObject(hCursor); pcurNew = UserGetCurIconObject(hCursor);
if (!pcurNew) if (!pcurNew)
{ {
EngSetLastError(ERROR_INVALID_HANDLE); EngSetLastError(ERROR_INVALID_CURSOR_HANDLE);
goto leave; goto leave;
} }
} }