mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
fix windows dynamic lib loading test
This commit is contained in:
parent
3ef8460d06
commit
fdc3132126
@ -283,7 +283,8 @@ pub const WindowsDynLib = struct {
|
|||||||
|
|
||||||
pub fn openW(path_w: [*:0]const u16) !WindowsDynLib {
|
pub fn openW(path_w: [*:0]const u16) !WindowsDynLib {
|
||||||
return WindowsDynLib{
|
return WindowsDynLib{
|
||||||
.dll = try windows.LoadLibraryW(path_w),
|
// + 4 to skip over the \??\
|
||||||
|
.dll = try windows.LoadLibraryW(path_w + 4),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user