diff --git a/src/windows/entrypoint.c b/src/windows/entrypoint.c index 7b542f4..5fc0cfa 100644 --- a/src/windows/entrypoint.c +++ b/src/windows/entrypoint.c @@ -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); \