From bd0da13d89a2ed1271ab606dcf4d0d067695fc3f Mon Sep 17 00:00:00 2001 From: Gregor Schneider Date: Wed, 1 Oct 2008 09:57:51 +0000 Subject: [PATCH] hColor is not needed in IntSetCursor, fixes Coverity CID 40. svn path=/trunk/; revision=36606 --- reactos/subsystems/win32/win32k/ntuser/cursoricon.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/cursoricon.c b/reactos/subsystems/win32/win32k/ntuser/cursoricon.c index caab60dd274..af22f6a4b12 100644 --- a/reactos/subsystems/win32/win32k/ntuser/cursoricon.c +++ b/reactos/subsystems/win32/win32k/ntuser/cursoricon.c @@ -107,7 +107,7 @@ IntSetCursor(PWINSTATION_OBJECT WinSta, PCURICON_OBJECT NewCursor, 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; @@ -294,10 +294,6 @@ IntSetCursor(PWINSTATION_OBJECT WinSta, PCURICON_OBJECT NewCursor, EngUnlockSurface(soMask); EngDeleteSurface((HSURF)hMask); } - if(hColor) - { - EngDeleteSurface((HSURF)hColor); - } if(XlateObj) { EngDeleteXlate(XlateObj);