瀏覽代碼

ifs wrong way around

Laytan 4 月之前
父節點
當前提交
2bce446d08
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/os/os2/process_windows.odin

+ 1 - 1
core/os/os2/process_windows.odin

@@ -437,7 +437,7 @@ _process_start :: proc(desc: Process_Desc) -> (process: Process, err: Error) {
 	stdin_handle:  win32.HANDLE	
 
 	null_handle: win32.HANDLE
-	if desc.stdout != nil || desc.stderr != nil || desc.stdin != nil {
+	if desc.stdout == nil || desc.stderr == nil || desc.stdin == nil {
 		null_handle := win32.CreateFileW(
 			win32.L("NUL"),
 			win32.GENERIC_READ|win32.GENERIC_WRITE,