mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
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:
parent
30e3ef3b49
commit
e9b41e5fc5
|
@ -230,8 +230,10 @@ static bool update_hook_file(bool b64)
|
||||||
struct win_version_info ver_dst = {0};
|
struct win_version_info ver_dst = {0};
|
||||||
if (!get_dll_ver(src, &ver_src))
|
if (!get_dll_ver(src, &ver_src))
|
||||||
return false;
|
return false;
|
||||||
|
#ifndef _DEBUG
|
||||||
if (!get_dll_ver(dst, &ver_dst))
|
if (!get_dll_ver(dst, &ver_dst))
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* if source is greater than dst, overwrite new file */
|
/* if source is greater than dst, overwrite new file */
|
||||||
while (win_version_compare(&ver_dst, &ver_src) < 0) {
|
while (win_version_compare(&ver_dst, &ver_src) < 0) {
|
||||||
|
|
Loading…
Reference in a new issue