win-capture: Fix registry lookup bug
The make_filename command was misplaced. Was meant to be right below the get_programdata_path call.master
parent
1a071982aa
commit
e40f2cc155
|
@ -182,9 +182,9 @@ static void init_vulkan_registry(bool b64)
|
|||
|
||||
wchar_t path[MAX_PATH];
|
||||
get_programdata_path(path, L"obs-studio-hook\\");
|
||||
make_filename(path, L"obs-vulkan", L".json");
|
||||
|
||||
s = get_reg(HKEY_LOCAL_MACHINE, IMPLICIT_LAYERS, path, b64);
|
||||
make_filename(path, L"obs-vulkan", L".json");
|
||||
|
||||
if (s == ERROR_FILE_NOT_FOUND) {
|
||||
s = get_reg(HKEY_CURRENT_USER, IMPLICIT_LAYERS, path, b64);
|
||||
|
|
Loading…
Reference in New Issue