mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
pointer reform: missed change in windows specific code.
This commit is contained in:
parent
b3a3e2094e
commit
f47655eb6d
@ -242,7 +242,7 @@ pub const File = struct {
|
||||
},
|
||||
Os.windows => {
|
||||
var pos: windows.LARGE_INTEGER = undefined;
|
||||
if (windows.SetFilePointerEx(self.handle, 0, *pos, windows.FILE_CURRENT) == 0) {
|
||||
if (windows.SetFilePointerEx(self.handle, 0, &pos, windows.FILE_CURRENT) == 0) {
|
||||
const err = windows.GetLastError();
|
||||
return switch (err) {
|
||||
windows.ERROR.INVALID_PARAMETER => error.BadFd,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user