aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index a6bc929cfd..31321d62fd 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -1750,7 +1750,7 @@ pub const WindowsModuleInfo = struct {
section_view: []const u8,
pub fn deinit(self: @This()) void {
- const process_handle = windows.kernel32.GetCurrentProcess();
+ const process_handle = windows.GetCurrentProcess();
assert(windows.ntdll.NtUnmapViewOfSection(process_handle, @constCast(@ptrCast(self.section_view.ptr))) == .SUCCESS);
windows.CloseHandle(self.section_handle);
self.file.close();
@@ -1980,7 +1980,7 @@ pub const DebugInfo = struct {
// openFileAbsoluteW requires the prefix to be present
@memcpy(name_buffer[0..4], &[_]u16{ '\\', '?', '?', '\\' });
- const process_handle = windows.kernel32.GetCurrentProcess();
+ const process_handle = windows.GetCurrentProcess();
const len = windows.kernel32.GetModuleFileNameExW(
process_handle,
module.handle,