https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b7071f67a8f56ef5c7ca6…
commit b7071f67a8f56ef5c7ca69dcb485806c3d008b76
Author: Thamatip Chitpong <tangaming123456(a)outlook.com>
AuthorDate: Sat Jun 17 01:33:29 2023 +0700
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Jun 17 03:33:29 2023 +0900
[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
---
base/applications/taskmgr/precomp.h | 5 -----
base/applications/taskmgr/taskmgr.c | 5 -----
2 files changed, 10 deletions(-)
diff --git a/base/applications/taskmgr/precomp.h b/base/applications/taskmgr/precomp.h
index 5a4f77a55d9..6b5aa223ed7 100644
--- a/base/applications/taskmgr/precomp.h
+++ b/base/applications/taskmgr/precomp.h
@@ -16,11 +16,6 @@
#include <stdlib.h>
#include <stdarg.h>
-#ifdef _DEBUG
- #define _CRTDBG_MAP_ALLOC
- #include <crtdbg.h>
-#endif
-
#define WIN32_NO_STATUS
#include <windef.h>
diff --git a/base/applications/taskmgr/taskmgr.c b/base/applications/taskmgr/taskmgr.c
index 51e6d4a8fcf..44bc24b2f96 100644
--- a/base/applications/taskmgr/taskmgr.c
+++ b/base/applications/taskmgr/taskmgr.c
@@ -101,11 +101,6 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
TOKEN_PRIVILEGES tkp;
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 */
hMutex = CreateMutexW(NULL, TRUE, L"taskmgrros");
if (hMutex && GetLastError() == ERROR_ALREADY_EXISTS)