mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 08:25:53 +00:00
[TASKMGR]
Don't leak handle CID #716315 svn path=/trunk/; revision=62646
This commit is contained in:
parent
35ab776df7
commit
e37f56bfbb
|
@ -130,6 +130,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||||
SendMessage(hTaskMgr, WM_SYSCOMMAND, SC_RESTORE, 0);
|
SendMessage(hTaskMgr, WM_SYSCOMMAND, SC_RESTORE, 0);
|
||||||
SetForegroundWindow(hTaskMgr);
|
SetForegroundWindow(hTaskMgr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CloseHandle(hMutex);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
else if (!hMutex)
|
else if (!hMutex)
|
||||||
|
@ -175,6 +177,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||||
/* Save our settings to the registry */
|
/* Save our settings to the registry */
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
PerfDataUninitialize();
|
PerfDataUninitialize();
|
||||||
|
CloseHandle(hMutex);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue