diff --git a/lib/std/dynamic_library.zig b/lib/std/dynamic_library.zig index 347491a44c..2132f03bd0 100644 --- 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), }; }