From f1ef0a80f1d614bbbb9ad8fae7992d55111c8cd7 Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Wed, 30 Dec 2020 12:14:25 -0700 Subject: [PATCH] fix LRESULT and LPARAM typedefs LRESULT and LPARAM are currently typedef'd as ?*c_void, however, they are supposed to be typedef'd as LONG_PTR which is equivalent to isize in Zig. --- lib/std/os/windows/bits.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/os/windows/bits.zig b/lib/std/os/windows/bits.zig index 6eeafe089f..6b0a375b94 100644 --- a/lib/std/os/windows/bits.zig +++ b/lib/std/os/windows/bits.zig @@ -84,8 +84,8 @@ pub const HLOCAL = HANDLE; pub const LANGID = c_ushort; pub const WPARAM = usize; -pub const LPARAM = ?*c_void; -pub const LRESULT = ?*c_void; +pub const LPARAM = LONG_PTR; +pub const LRESULT = LONG_PTR; pub const va_list = *opaque {};