mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
netReceiveOneWindows: fix typo
This commit is contained in:
@@ -13001,7 +13001,7 @@ fn netReceiveOneWindows(
|
||||
}),
|
||||
});
|
||||
switch (iosb.u.Status) {
|
||||
.SUCCESS, .RECEIVE_PARTIAL => |status| message.* = .{
|
||||
.SUCCESS, .RECEIVE_EXPEDITED => |status| message.* = .{
|
||||
.from = addressFromPosix(&storage),
|
||||
.data = data_buffer[0..iosb.Information],
|
||||
.control = &.{},
|
||||
@@ -13017,12 +13017,12 @@ fn netReceiveOneWindows(
|
||||
.errqueue = false,
|
||||
},
|
||||
},
|
||||
.RECEIVE_EXPEDITED,
|
||||
.RECEIVE_PARTIAL,
|
||||
.RECEIVE_PARTIAL_EXPEDITED,
|
||||
.BUFFER_OVERFLOW,
|
||||
=> |status| return windows.unexpectedStatus(status), // TdiFlags.PARTIAL = false
|
||||
.CANCELLED => unreachable,
|
||||
.INSUFFICIENT_RESOURCES => return error.SystemResources,
|
||||
.BUFFER_OVERFLOW => return error.MessageOversize,
|
||||
else => |status| return windows.unexpectedStatus(status),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user