We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601aee8 commit 6a461efCopy full SHA for 6a461ef
1 file changed
src/wrappers/win32/h_instance.rs
@@ -30,6 +30,9 @@ impl HInstance {
30
}
31
32
pub fn addr(&self) -> NonZeroIsize {
33
- self.0.addr().cast_signed()
+ match NonZeroIsize::new(self.0.as_ptr() as isize) {
34
+ Some(addr) => addr,
35
+ None => unreachable!(),
36
+ }
37
38
0 commit comments