diff --git a/src/os.cpp b/src/os.cpp index 8f830b94c9..e312854612 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -390,15 +390,15 @@ static int os_exec_process_posix(const char *exe, ZigList &args, #if defined(ZIG_OS_WINDOWS) -static void win32_panic(const char *str) { - DWORD err = GetLastError(); - LPSTR messageBuffer = nullptr; - FormatMessageA( - FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); - zig_panic(str, messageBuffer); - LocalFree(messageBuffer); -} +//static void win32_panic(const char *str) { +// DWORD err = GetLastError(); +// LPSTR messageBuffer = nullptr; +// FormatMessageA( +// FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, +// NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&messageBuffer, 0, NULL); +// zig_panic(str, messageBuffer); +// LocalFree(messageBuffer); +//} static int os_exec_process_windows(const char *exe, ZigList &args, Termination *term, Buf *out_stderr, Buf *out_stdout)