https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cc4480ffeacc1668c01b4…
commit cc4480ffeacc1668c01b4c57c96e787992933bb5
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Mar 20 22:55:12 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Mar 20 22:55:12 2023 +0900
[NOTEPAD] Move '#include <crtdbg.h>' and add _CRTDBG_MAP_ALLOC (#5176)
CORE-18837
---
base/applications/notepad/main.c | 4 ----
base/applications/notepad/notepad.h | 5 +++++
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/base/applications/notepad/main.c b/base/applications/notepad/main.c
index 3f30dd2a3fd..baea8b40ada 100644
--- a/base/applications/notepad/main.c
+++ b/base/applications/notepad/main.c
@@ -14,10 +14,6 @@
#include <shlobj.h>
#include <strsafe.h>
-#ifdef _DEBUG
-#include <crtdbg.h>
-#endif
-
NOTEPAD_GLOBALS Globals;
static ATOM aFINDMSGSTRING;
diff --git a/base/applications/notepad/notepad.h b/base/applications/notepad/notepad.h
index af329f24dd6..2b9338a3b85 100644
--- a/base/applications/notepad/notepad.h
+++ b/base/applications/notepad/notepad.h
@@ -23,7 +23,12 @@
#include <shellapi.h>
#include <commdlg.h>
#include <tchar.h>
+#include <stdlib.h>
#include <malloc.h>
+#ifdef _DEBUG
+ #define _CRTDBG_MAP_ALLOC
+ #include <crtdbg.h>
+#endif
#include "dialog.h"
#include "notepad_res.h"