summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3ad1e9f..e31fe4d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -439,6 +439,7 @@ u32 continue_status = DBG_EXCEPTION_NOT_HANDLED;
// TODO: Perfect hashing table ?
u8* string_stack_base = NULL;
u8* string_stack_current = NULL;
+const u32 string_stack_size = 64U * 4096U;
void dbg_loop(void) {
while(is_open) {
@@ -494,7 +495,7 @@ extern void load_funcs(void);
int mainCRTStartup(void) {
load_funcs();
- string_stack_current = string_stack_base = VirtualAlloc(NULL, 4096U * 64U, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
+ string_stack_current = string_stack_base = VirtualAlloc(NULL, string_stack_size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
STARTUPINFOA startup_info = { 0 };
startup_info.cb = sizeof(startup_info);