| ... | @@ -344,9 +344,14 @@ pub const WindowsDynLib = struct { | ... | @@ -344,9 +344,14 @@ pub const WindowsDynLib = struct { |
| 344 | } | 344 | } |
| 345 | | 345 | |
| 346 | pub fn openW(path_w: [*:0]const u16) !WindowsDynLib { | 346 | pub fn openW(path_w: [*:0]const u16) !WindowsDynLib { |
| 347 | return WindowsDynLib{ | 347 | var offset: usize = 0; |
| | 348 | if (path_w[0] == '\\' and path_w[1] == '?' and path_w[2] == '?' and path_w[3] == '\\') { |
| 348 | // + 4 to skip over the \??\ | 349 | // + 4 to skip over the \??\ |
| 349 | .dll = try windows.LoadLibraryW(path_w + 4), | 350 | offset = 4; |
| | 351 | } |
| | 352 | |
| | 353 | return WindowsDynLib{ |
| | 354 | .dll = try windows.LoadLibraryW(path_w + offset), |
| 350 | }; | 355 | }; |
| 351 | } | 356 | } |
| 352 | | 357 | |