Skip to content

Commit

Permalink
fix: Handle ordinals in GetProcAddress detour
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriper1111 committed Aug 17, 2024
1 parent 5607be4 commit 143770e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/entrypoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void capture_mono_path(void *handle) {
bool_t initialized = FALSE;
void *WINAPI get_proc_address_detour(void *module, char *name) {
#define REDIRECT_INIT(init_name, init_func, target, extra_init) \
if (lstrcmpA(name, init_name) == 0) { \
if (HIWORD(name) && lstrcmpA(name, init_name) == 0) { \
if (!initialized) { \
initialized = TRUE; \
LOG("Got %S at %p", init_name, module); \
Expand Down

0 comments on commit 143770e

Please sign in to comment.