mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
Fix HINSTANCE returned by raw_window_handle on 64 bit Windows (#1841)
This commit is contained in:
parent
3f1e09ec0e
commit
f79c01b0cf
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ impl Window {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn hinstance(&self) -> HINSTANCE {
|
pub fn hinstance(&self) -> HINSTANCE {
|
||||||
unsafe { winuser::GetWindowLongW(self.hwnd(), winuser::GWL_HINSTANCE) as *mut _ }
|
unsafe { winuser::GetWindowLongPtrW(self.hwnd(), winuser::GWLP_HINSTANCE) as *mut _ }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Reference in a new issue