build(zig-0.16): fix windows build

This commit is contained in:
CJ van den Berg 2026-04-13 13:00:11 +02:00
parent 5fe5307124
commit 8203d7bdc7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -91,7 +91,7 @@ const notify_filter: windows.DWORD =
0x00000010 | // FILE_NOTIFY_CHANGE_LAST_WRITE
0x00000040; // FILE_NOTIFY_CHANGE_CREATION
pub fn init(io: std.Io, handler: *Handler) windows.CreateIoCompletionPortError!@This() {
pub fn init(io: std.Io, handler: *Handler) !@This() {
const iocp = try windows.CreateIoCompletionPort(windows.INVALID_HANDLE_VALUE, null, 0, 1);
return .{ .handler = handler, .io = io, .iocp = iocp, .thread = null, .watches = .empty, .watches_mutex = std.Io.Mutex.init, .path_types = .empty };
}