Skip to content

Commit ca78386

Browse files
authored
Update src/windows/entrypoint.c
1 parent 143770e commit ca78386

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/windows/entrypoint.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ void capture_mono_path(void *handle) {
138138
bool_t initialized = FALSE;
139139
void *WINAPI get_proc_address_detour(void *module, char *name) {
140140
#define REDIRECT_INIT(init_name, init_func, target, extra_init) \
141+
// If the lpProcName pointer contains an ordinal rather than a string, high-word value of the pointer is zero (see PR #66)
141142
if (HIWORD(name) && lstrcmpA(name, init_name) == 0) { \
142143
if (!initialized) { \
143144
initialized = TRUE; \

0 commit comments

Comments
 (0)