authorgravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2020-12-17 11:08:21+02:00
committergravatar for alex_naskos@hotmail.comAlexandros Naskos <alex_naskos@hotmail.com> 2020-12-17 11:08:21+02:00
log85cc3f24a0c1ee9957d0264bd7532441090cbd6c
tree28b104f0cbecf640980451d95642466f1c4797cf
parentaa6654a4b3c64499ccb4b16e1f7257e7da14ef81
signature Commit is signed but in an unrecognized format.

Only check for evented mode in windows.OpenFile when in async mode


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/windows.zig+1-1
...@@ -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;