win-capture: Fix "attempting to hook [executable]" message

The "attempting to hook [executable]" message would not display the
correct executable if it's fallen back to a different window with the
same window class.
This commit is contained in:
jp9000 2016-12-15 20:06:43 -08:00
parent 209bcda1f4
commit 480d0e986f

View File

@ -1016,8 +1016,9 @@ static bool init_hook(struct game_capture *gc)
exe.array);
}
} else {
info("attempting to hook process: %s", gc->executable.array);
dstr_copy_dstr(&exe, &gc->executable);
if (get_window_exe(&exe, gc->next_window)) {
info("attempting to hook process: %s", exe.array);
}
}
blacklisted_process = is_blacklisted_exe(exe.array);