lxlenovostar
New Member
I build obs 26.1.1 from source codes. I get the codes form github. I try to debug it, and I find RegOpenKeyExW return 2.
I know we should update registry of Windows10, mybe it's wrong.
How to fix it? I don't know much about Windows10.
Thank you
C:
#ifdef VIRTUALCAM_ENABLED
extern "C" struct obs_output_info virtualcam_info;
static bool vcam_installed(bool b64)
{
wchar_t cls_str[CHARS_IN_GUID];
wchar_t temp[MAX_PATH];
HKEY key = nullptr;
StringFromGUID2(CLSID_OBS_VirtualVideo, cls_str, CHARS_IN_GUID);
StringCbPrintf(temp, sizeof(temp), L"CLSID\\%s", cls_str);
DWORD flags = KEY_READ;
flags |= b64 ? KEY_WOW64_64KEY : KEY_WOW64_32KEY;
LSTATUS status = RegOpenKeyExW(HKEY_CLASSES_ROOT, temp, 0, flags, &key);
if (status != ERROR_SUCCESS) {
return false;
}
RegCloseKey(key);
return true;
}
#endif
I know we should update registry of Windows10, mybe it's wrong.
How to fix it? I don't know much about Windows10.
Thank you