https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ed03768b1b8e288f8782d…
commit ed03768b1b8e288f8782db35a4ba4547dd7ae38c
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Mar 20 22:59:05 2023 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Mar 20 22:59:05 2023 +0900
[MSPAINT] Move '#include <crtdbg.h>' and add _CRTDBG_MAP_ALLOC
CORE-18867
---
base/applications/mspaint/main.cpp | 4 ----
base/applications/mspaint/precomp.h | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/base/applications/mspaint/main.cpp b/base/applications/mspaint/main.cpp
index 82b70d9dba5..f24a12b1a1f 100644
--- a/base/applications/mspaint/main.cpp
+++ b/base/applications/mspaint/main.cpp
@@ -8,10 +8,6 @@
#include "precomp.h"
-#ifdef _DEBUG
-#include <crtdbg.h>
-#endif
-
/* FUNCTIONS ********************************************************/
POINT start;
diff --git a/base/applications/mspaint/precomp.h b/base/applications/mspaint/precomp.h
index cd24f7f8379..c73cd809a75 100644
--- a/base/applications/mspaint/precomp.h
+++ b/base/applications/mspaint/precomp.h
@@ -26,6 +26,10 @@
#include <stdlib.h>
#include <shellapi.h>
#include <htmlhelp.h>
+#ifdef _DEBUG
+ #define _CRTDBG_MAP_ALLOC
+ #include <crtdbg.h>
+#endif
#define NDEBUG
#include <debug.h>