| ... | @@ -110,7 +110,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN | ... | @@ -110,7 +110,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN |
| 110 | ); | 110 | ); |
| 111 | switch (rc) { | 111 | switch (rc) { |
| 112 | .SUCCESS => { | 112 | .SUCCESS => { |
| 113 | if (options.io_mode == .evented) { | 113 | if (std.io.is_async and options.io_mode == .evented) { |
| 114 | _ = CreateIoCompletionPort(result, std.event.Loop.instance.?.os_data.io_port, undefined, undefined) catch undefined; | 114 | _ = CreateIoCompletionPort(result, std.event.Loop.instance.?.os_data.io_port, undefined, undefined) catch undefined; |
| 115 | } | 115 | } |
| 116 | return result; | 116 | return result; |