Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
update dummy devicepath
Browse files Browse the repository at this point in the history
  • Loading branch information
CatxFish committed Dec 23, 2017
1 parent 5fa7172 commit 2aed61f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/virtual-source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,9 @@ void RegisterDummyDevicePath()
RegOpenKeyEx(HKEY_LOCAL_MACHINE, str_video_capture_device_key.c_str(), 0,
KEY_ALL_ACCESS, &hKey);


LPCTSTR value = TEXT("DevicePath");
LPCTSTR data = "obs:virtualcam";
if (ERROR_SUCCESS == RegSetValueEx(hKey, value, 0, REG_SZ, (LPBYTE)data, strlen(data) + 1))
::MessageBoxA(0, "ok", "ok", MB_OK);

RegSetValueEx(hKey, value, 0, REG_SZ, (LPBYTE)data, strlen(data) + 1);
RegCloseKey(hKey);
}

Expand Down

0 comments on commit 2aed61f

Please sign in to comment.