Add -show-system-calls; Update runtime for windows_386; Fix some minor bugs

This commit is contained in:
gingerBill
2020-06-30 10:09:58 +01:00
parent 0ea64182f1
commit 92363da58e
7 changed files with 48 additions and 9 deletions
+3 -1
View File
@@ -203,7 +203,9 @@ stderr := get_std_handle(uint(win32.STD_ERROR_HANDLE));
get_std_handle :: proc "contextless" (h: uint) -> Handle {
fd := win32.GetStdHandle(win32.DWORD(h));
win32.SetHandleInformation(fd, win32.HANDLE_FLAG_INHERIT, 0);
when size_of(uintptr) == 8 {
win32.SetHandleInformation(fd, win32.HANDLE_FLAG_INHERIT, 0);
}
return Handle(fd);
}