From e40f2cc15570409dc2beb69fffaa442b114e6e02 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 29 Feb 2020 10:32:20 -0800 Subject: [PATCH] win-capture: Fix registry lookup bug The make_filename command was misplaced. Was meant to be right below the get_programdata_path call. --- plugins/win-capture/game-capture-file-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/game-capture-file-init.c b/plugins/win-capture/game-capture-file-init.c index 2be48806c..6341e57de 100644 --- a/plugins/win-capture/game-capture-file-init.c +++ b/plugins/win-capture/game-capture-file-init.c @@ -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);