win-capture: Fix registry lookup bug

The make_filename command was misplaced.  Was meant to be right below
the get_programdata_path call.
master
jp9000 2020-02-29 10:32:20 -08:00
parent 1a071982aa
commit e40f2cc155
1 changed files with 1 additions and 1 deletions

View File

@ -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);