Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/windows/entrypoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ void capture_mono_path(void *handle) {

bool_t initialized = FALSE;
void *WINAPI get_proc_address_detour(void *module, char *name) {
// If the lpProcName pointer contains an ordinal rather than a string,
// high-word value of the pointer is zero (see PR #66)
#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