mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[TASKMGR] Remove CRTDBG (#5348)
taskmgr doesn't use any CRT allocation. I don't see the point of using it.
This reverts commit 2441e86
.
CORE-18991
This commit is contained in:
parent
2f856f6f0d
commit
b7071f67a8
2 changed files with 0 additions and 10 deletions
|
@ -16,11 +16,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
#define _CRTDBG_MAP_ALLOC
|
|
||||||
#include <crtdbg.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#define WIN32_NO_STATUS
|
||||||
|
|
||||||
#include <windef.h>
|
#include <windef.h>
|
||||||
|
|
|
@ -101,11 +101,6 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||||
TOKEN_PRIVILEGES tkp;
|
TOKEN_PRIVILEGES tkp;
|
||||||
HANDLE hMutex;
|
HANDLE hMutex;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
// Report any memory leaks on exit
|
|
||||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* check wether we're already running or not */
|
/* check wether we're already running or not */
|
||||||
hMutex = CreateMutexW(NULL, TRUE, L"taskmgrros");
|
hMutex = CreateMutexW(NULL, TRUE, L"taskmgrros");
|
||||||
if (hMutex && GetLastError() == ERROR_ALREADY_EXISTS)
|
if (hMutex && GetLastError() == ERROR_ALREADY_EXISTS)
|
||||||
|
|
Loading…
Reference in a new issue