| ... | @@ -390,15 +390,15 @@ static int os_exec_process_posix(const char *exe, ZigList<const char *> &args, | ... | @@ -390,15 +390,15 @@ static int os_exec_process_posix(const char *exe, ZigList<const char *> &args, |
| 390 | | 390 | |
| 391 | #if defined(ZIG_OS_WINDOWS) | 391 | #if defined(ZIG_OS_WINDOWS) |
| 392 | | 392 | |
| 393 | static void win32_panic(const char *str) { | 393 | //static void win32_panic(const char *str) { |
| 394 | DWORD err = GetLastError(); | 394 | // DWORD err = GetLastError(); |
| 395 | LPSTR messageBuffer = nullptr; | 395 | // LPSTR messageBuffer = nullptr; |
| 396 | FormatMessageA( | 396 | // FormatMessageA( |
| 397 | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, | 397 | // FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, |
| 398 | NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); | 398 | // NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); |
| 399 | zig_panic(str, messageBuffer); | 399 | // zig_panic(str, messageBuffer); |
| 400 | LocalFree(messageBuffer); | 400 | // LocalFree(messageBuffer); |
| 401 | } | 401 | //} |
| 402 | | 402 | |
| 403 | static int os_exec_process_windows(const char *exe, ZigList<const char *> &args, | 403 | static int os_exec_process_windows(const char *exe, ZigList<const char *> &args, |
| 404 | Termination *term, Buf *out_stderr, Buf *out_stdout) | 404 | Termination *term, Buf *out_stderr, Buf *out_stdout) |