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