fix windows dynamic lib loading test

This commit is contained in:
Andrew Kelley 2019-12-10 13:21:37 -05:00
parent 3ef8460d06
commit fdc3132126

View File

@ -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),
}; };
} }