authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-10 13:21:37-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-10 13:21:37-05:00
logfdc31321268214fbb2b0832b0d269cea56639e98
tree378399b2b3b2b6c07aced240a83d7b361cc26109
parent3ef8460d0646dbf0e762cbd7e0728fc2026d2001

fix windows dynamic lib loading test


1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/dynamic_library.zig+2-1
...@@ -283,7 +283,8 @@ pub const WindowsDynLib = struct {...@@ -283,7 +283,8 @@ pub const WindowsDynLib = struct {
283283
284 pub fn openW(path_w: [*:0]const u16) !WindowsDynLib {284 pub fn openW(path_w: [*:0]const u16) !WindowsDynLib {
285 return WindowsDynLib{285 return WindowsDynLib{
286 .dll = try windows.LoadLibraryW(path_w),286 // + 4 to skip over the \??\
287 .dll = try windows.LoadLibraryW(path_w + 4),
287 };288 };
288 }289 }
289290