Author: tfaber
Date: Thu Oct 22 16:41:38 2015
New Revision: 69648
URL:
http://svn.reactos.org/svn/reactos?rev=69648&view=rev
Log:
[WIN32K:NTUSER]
- Fix uninitialized variable use in failure case of NtUserSetCursorIconData. CID 1322233
Modified:
trunk/reactos/win32ss/user/ntuser/cursoricon.c
Modified: trunk/reactos/win32ss/user/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/cursor…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/cursoricon.c [iso-8859-1] Thu Oct 22 16:41:38 2015
@@ -1507,7 +1507,7 @@
PINT ajifRate;
UINT cjSize;
NTSTATUS status;
- BOOL bResult;
+ BOOL bResult = FALSE;
TRACE("Enter NtUserSetCursorIconData\n");
@@ -1531,7 +1531,6 @@
{
ERR("Range error (cpcur = %u, cicur = %u)\n",
cursordata.cpcur, cursordata.cicur);
- bResult = FALSE;
goto Exit;
}
@@ -1547,7 +1546,6 @@
{
ERR("Failed to allocate memory (cpcur = %u, cicur = %u)\n",
cursordata.cpcur, cursordata.cicur);
- bResult = FALSE;
goto Exit;
}
@@ -1590,7 +1588,6 @@
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
SetLastNtError(_SEH2_GetExceptionCode());
- bResult = FALSE;
goto Exit;
}
_SEH2_END