Author: gschneider
Date: Wed Oct 1 04:57:51 2008
New Revision: 36606
URL:
http://svn.reactos.org/svn/reactos?rev=36606&view=rev
Log:
hColor is not needed in IntSetCursor, fixes Coverity CID 40.
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] Wed Oct 1
04:57:51 2008
@@ -107,7 +107,7 @@
PSYSTEM_CURSORINFO CurInfo;
PCURICON_OBJECT OldCursor;
HCURSOR Ret = (HCURSOR)0;
- HBITMAP dcbmp, hColor = (HBITMAP)0;
+ HBITMAP dcbmp;
HBITMAP hMask = 0;
SURFOBJ *soMask = NULL, *soColor = NULL;
XLATEOBJ *XlateObj = NULL;
@@ -293,10 +293,6 @@
{
EngUnlockSurface(soMask);
EngDeleteSurface((HSURF)hMask);
- }
- if(hColor)
- {
- EngDeleteSurface((HSURF)hColor);
}
if(XlateObj)
{