win-capture: Always copy file when debugging

Helps ensure that the hook can be debugged for things like vulkan
capture.
This commit is contained in:
jp9000 2020-03-09 02:49:06 -07:00
parent 30e3ef3b49
commit e9b41e5fc5

View file

@ -230,8 +230,10 @@ static bool update_hook_file(bool b64)
struct win_version_info ver_dst = {0};
if (!get_dll_ver(src, &ver_src))
return false;
#ifndef _DEBUG
if (!get_dll_ver(dst, &ver_dst))
return false;
#endif
/* if source is greater than dst, overwrite new file */
while (win_version_compare(&ver_dst, &ver_src) < 0) {