Skip to content

Commit

Permalink
don't register retrowin32.dll at image_base 0
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Feb 23, 2025
1 parent f87cb3f commit 1916bda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions win32/src/winapi/kernel32/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ impl State {
};
loader::Module {
name: "retrowin32.dll".into(),
// use a non-zero base address so it doesn't register as the null HMODULE
image_base: 1,
exports,
..Default::default() // rest of fields unused
}
Expand Down

0 comments on commit 1916bda

Please sign in to comment.