diff options
| author | Quentin LADEVIE <qladevie@wanadev.fr> | 2025-04-30 00:17:19 +0200 |
|---|---|---|
| committer | Quentin LADEVIE <qladevie@wanadev.fr> | 2025-04-30 00:17:19 +0200 |
| commit | 0ad788465c7505bdadff64c2f3af3ad5edf71cc3 (patch) | |
| tree | 96bbcf64de7bd2ee7c99ad9a133182ea62a1db0e /src/main.c | |
| parent | f8c92cfa9eeb82a608d409cac70d9d2533ab79d8 (diff) | |
Compiles files one by one
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -8,6 +8,8 @@ #include "events.h" #include "parser.h" +extern u32 _fltused = TRUE; + u8 is_open = TRUE; u8 process_commands = TRUE; @@ -16,6 +18,9 @@ HANDLE h_output = NULL; DEBUG_EVENT dbg_event; PROCESS_INFORMATION proc_info = { 0 }; DWORD continue_status = DBG_EXCEPTION_NOT_HANDLED; +// TODO: Perfect hashing table ? +u8* string_stack_base = NULL; +u8* string_stack_current = NULL; void dbg_loop() { while(is_open) { @@ -69,12 +74,14 @@ void dbg_loop() { int mainCRTStartup() { - STARTUPINFOW startup_info = { 0 }; + string_stack_current = string_stack_base = VirtualAlloc(NULL, 4096U * 64U, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); + + STARTUPINFOA startup_info = { 0 }; startup_info.cb = sizeof(startup_info); - BOOL ret = CreateProcessW( + BOOL ret = CreateProcessA( NULL, - L"./test.exe", + "./test.exe", NULL, NULL, FALSE, |
