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:
parent
209bcda1f4
commit
480d0e986f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user