Author: tkreuzer
Date: Sat Jan 15 19:42:56 2011
New Revision: 50392
URL:
http://svn.reactos.org/svn/reactos?rev=50392&view=rev
Log:
[WIN32K]
Set correct error value on failure in NtUserSetCursor. Patch by Victor Martinez.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] Sat Jan 15
19:42:56 2011
@@ -869,7 +869,7 @@
pcurNew = UserGetCurIconObject(hCursor);
if (!pcurNew)
{
- EngSetLastError(ERROR_INVALID_HANDLE);
+ EngSetLastError(ERROR_INVALID_CURSOR_HANDLE);
goto leave;
}
}