aboutsummaryrefslogtreecommitdiff
path: root/std/os/windows/util.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-14 17:10:53 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-14 17:10:53 -0400
commitad6eec94804d4bfc8c16ea8c852cd32f1f822e97 (patch)
treea5cd5e9199336f51bfe64179e31cd4c14b231d12 /std/os/windows/util.zig
parent0307dc0b774daa20c3258e3bd3330f5316c118cf (diff)
downloadzig-ad6eec94804d4bfc8c16ea8c852cd32f1f822e97.tar.gz
zig-ad6eec94804d4bfc8c16ea8c852cd32f1f822e97.zip
fix regressions from previous commit on windows
Diffstat (limited to 'std/os/windows/util.zig')
-rw-r--r--std/os/windows/util.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/std/os/windows/util.zig b/std/os/windows/util.zig
index 2d33810b3a..da17496e89 100644
--- a/std/os/windows/util.zig
+++ b/std/os/windows/util.zig
@@ -1,4 +1,5 @@
const std = @import("../../index.zig");
+const os = std.os;
const windows = std.os.windows;
const assert = std.debug.assert;
const mem = std.mem;
@@ -75,9 +76,9 @@ error PipeBusy;
/// size buffer is too small, and the provided allocator is null, ::error.NameTooLong is returned.
/// otherwise if the fixed size buffer is too small, allocator is used to obtain the needed memory.
pub fn windowsOpen(file_path: []const u8, desired_access: windows.DWORD, share_mode: windows.DWORD,
- creation_disposition: windows.DWORD, flags_and_attrs: windows.DWORD, allocator: ?&Allocator) -> %windows.HANDLE
+ creation_disposition: windows.DWORD, flags_and_attrs: windows.DWORD, allocator: ?&mem.Allocator) -> %windows.HANDLE
{
- var stack_buf: [max_noalloc_path_len]u8 = undefined;
+ var stack_buf: [os.max_noalloc_path_len]u8 = undefined;
var path0: []u8 = undefined;
var need_free = false;
defer if (need_free) (??allocator).free(path0);