zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit fdc31321268214fbb2b0832b0d269cea56639e98 (tree)
parent 3ef8460d0646dbf0e762cbd7e0728fc2026d2001
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 10 Dec 2019 13:21:37 -0500

fix windows dynamic lib loading test

Diffstat:
Mlib/std/dynamic_library.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/dynamic_library.zig b/lib/std/dynamic_library.zig @@ -283,7 +283,8 @@ pub const WindowsDynLib = struct { pub fn openW(path_w: [*:0]const u16) !WindowsDynLib { return WindowsDynLib{ - .dll = try windows.LoadLibraryW(path_w), + // + 4 to skip over the \??\ + .dll = try windows.LoadLibraryW(path_w + 4), }; }