mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Merge pull request #1679 from Tetralux/fix-std-handle
Have get_std_handle() no longer make the handles uninheritable
This commit is contained in:
@@ -320,9 +320,6 @@ stderr := get_std_handle(uint(win32.STD_ERROR_HANDLE))
|
|||||||
|
|
||||||
get_std_handle :: proc "contextless" (h: uint) -> Handle {
|
get_std_handle :: proc "contextless" (h: uint) -> Handle {
|
||||||
fd := win32.GetStdHandle(win32.DWORD(h))
|
fd := win32.GetStdHandle(win32.DWORD(h))
|
||||||
when size_of(uintptr) == 8 {
|
|
||||||
win32.SetHandleInformation(fd, win32.HANDLE_FLAG_INHERIT, 0)
|
|
||||||
}
|
|
||||||
return Handle(fd)
|
return Handle(fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user