浏览代码

win-capture: Fix registry lookup bug

The make_filename command was misplaced.  Was meant to be right below
the get_programdata_path call.
jp9000 5 年之前
父节点
当前提交
e40f2cc155
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/win-capture/game-capture-file-init.c

+ 1 - 1
plugins/win-capture/game-capture-file-init.c

@@ -182,9 +182,9 @@ static void init_vulkan_registry(bool b64)
 
 
 	wchar_t path[MAX_PATH];
 	wchar_t path[MAX_PATH];
 	get_programdata_path(path, L"obs-studio-hook\\");
 	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);
 	s = get_reg(HKEY_LOCAL_MACHINE, IMPLICIT_LAYERS, path, b64);
-	make_filename(path, L"obs-vulkan", L".json");
 
 
 	if (s == ERROR_FILE_NOT_FOUND) {
 	if (s == ERROR_FILE_NOT_FOUND) {
 		s = get_reg(HKEY_CURRENT_USER, IMPLICIT_LAYERS, path, b64);
 		s = get_reg(HKEY_CURRENT_USER, IMPLICIT_LAYERS, path, b64);