[REGEDIT] Move '#include <crtdbg.h>' and add _CRTDBG_MAP_ALLOC

- Add #include <stdlib.h>.
- Move #include <crtdbg.h> to "regedit.h".
- Add #define _CRTDBG_MAP_ALLOC before #include <crtdbg.h>.
CORE-18876
This commit is contained in:
Katayama Hirofumi MZ 2023-03-21 07:26:04 +09:00
parent 1ef98fff3b
commit 49d8c1af21
2 changed files with 5 additions and 4 deletions

View file

@ -20,10 +20,6 @@
#include "regedit.h"
#ifdef _DEBUG
#include <crtdbg.h>
#endif
BOOL ProcessCmdLine(WCHAR *cmdline);
const WCHAR *reg_class_namesW[] = {L"HKEY_LOCAL_MACHINE", L"HKEY_USERS",

View file

@ -10,6 +10,11 @@
#include <aclapi.h>
#include <shellapi.h>
#include <strsafe.h>
#include <stdlib.h>
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#include "main.h"
#include "hexedit.h"