taskmgr: Remove dead code in trayicon.c (Coverity).

This commit is contained in:
Detlef Riekenberg 2006-09-10 21:15:11 +02:00 committed by Alexandre Julliard
parent b317aeaf0a
commit ed8ce298e1
1 changed files with 2 additions and 5 deletions

View File

@ -40,7 +40,7 @@ HICON TrayIcon_GetProcessorUsageIcon(void)
HDC hScreenDC = NULL;
HDC hDC = NULL;
HBITMAP hBitmap = NULL;
HBITMAP hOldBitmap = NULL;
HBITMAP hOldBitmap;
HBITMAP hBitmapMask = NULL;
ICONINFO iconInfo;
ULONG ProcessorUsage;
@ -108,8 +108,7 @@ HICON TrayIcon_GetProcessorUsageIcon(void)
* old bitmap back.
*/
SelectObject(hDC, hOldBitmap);
hOldBitmap = NULL;
iconInfo.fIcon = TRUE;
iconInfo.xHotspot = 0;
iconInfo.yHotspot = 0;
@ -124,8 +123,6 @@ done:
*/
if (hScreenDC)
ReleaseDC(NULL, hScreenDC);
if (hOldBitmap)
SelectObject(hDC, hOldBitmap);
if (hDC)
DeleteDC(hDC);
if (hBitmapBrush)