提交 e40f2cc1 编写于 作者: J jp9000

win-capture: Fix registry lookup bug

The make_filename command was misplaced.  Was meant to be right below
the get_programdata_path call.
上级 1a071982
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册