Skip to content

Commit f79c01b

Browse files
authored
Fix HINSTANCE returned by raw_window_handle on 64 bit Windows (#1841)
1 parent 3f1e09e commit f79c01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform_impl/windows/window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ impl Window {
278278

279279
#[inline]
280280
pub fn hinstance(&self) -> HINSTANCE {
281-
unsafe { winuser::GetWindowLongW(self.hwnd(), winuser::GWL_HINSTANCE) as *mut _ }
281+
unsafe { winuser::GetWindowLongPtrW(self.hwnd(), winuser::GWLP_HINSTANCE) as *mut _ }
282282
}
283283

284284
#[inline]

0 commit comments

Comments
 (0)