| ... | @@ -1750,7 +1750,7 @@ pub const WindowsModuleInfo = struct { | ... | @@ -1750,7 +1750,7 @@ pub const WindowsModuleInfo = struct { |
| 1750 | section_view: []const u8, | 1750 | section_view: []const u8, |
| 1751 | | 1751 | |
| 1752 | pub fn deinit(self: @This()) void { | 1752 | pub fn deinit(self: @This()) void { |
| 1753 | const process_handle = windows.kernel32.GetCurrentProcess(); | 1753 | const process_handle = windows.GetCurrentProcess(); |
| 1754 | assert(windows.ntdll.NtUnmapViewOfSection(process_handle, @constCast(@ptrCast(self.section_view.ptr))) == .SUCCESS); | 1754 | assert(windows.ntdll.NtUnmapViewOfSection(process_handle, @constCast(@ptrCast(self.section_view.ptr))) == .SUCCESS); |
| 1755 | windows.CloseHandle(self.section_handle); | 1755 | windows.CloseHandle(self.section_handle); |
| 1756 | self.file.close(); | 1756 | self.file.close(); |
| ... | @@ -1980,7 +1980,7 @@ pub const DebugInfo = struct { | ... | @@ -1980,7 +1980,7 @@ pub const DebugInfo = struct { |
| 1980 | // openFileAbsoluteW requires the prefix to be present | 1980 | // openFileAbsoluteW requires the prefix to be present |
| 1981 | @memcpy(name_buffer[0..4], &[_]u16{ '\\', '?', '?', '\\' }); | 1981 | @memcpy(name_buffer[0..4], &[_]u16{ '\\', '?', '?', '\\' }); |
| 1982 | | 1982 | |
| 1983 | const process_handle = windows.kernel32.GetCurrentProcess(); | 1983 | const process_handle = windows.GetCurrentProcess(); |
| 1984 | const len = windows.kernel32.GetModuleFileNameExW( | 1984 | const len = windows.kernel32.GetModuleFileNameExW( |
| 1985 | process_handle, | 1985 | process_handle, |
| 1986 | module.handle, | 1986 | module.handle, |