Skip to content

Commit fdc3132

Browse files
committed
fix windows dynamic lib loading test
1 parent 3ef8460 commit fdc3132

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/std/dynamic_library.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ pub const WindowsDynLib = struct {
283283

284284
pub fn openW(path_w: [*:0]const u16) !WindowsDynLib {
285285
return WindowsDynLib{
286-
.dll = try windows.LoadLibraryW(path_w),
286+
// + 4 to skip over the \??\
287+
.dll = try windows.LoadLibraryW(path_w + 4),
287288
};
288289
}
289290

0 commit comments

Comments
 (0)