提交 21fb1e77 编写于 作者: R Richard Stanway

win-dshow: Use constant reference for virtualcam CLSID

上级 4c08c7bf
......@@ -104,8 +104,8 @@ static inline DWORD string_size(const wchar_t *str)
return (DWORD)(wcslen(str) + 1) * sizeof(wchar_t);
}
static bool RegServer(CLSID cls, const wchar_t *desc, const wchar_t *file,
const wchar_t *model = L"Both",
static bool RegServer(const CLSID &cls, const wchar_t *desc,
const wchar_t *file, const wchar_t *model = L"Both",
const wchar_t *type = L"InprocServer32")
{
wchar_t cls_str[CHARS_IN_GUID];
......@@ -145,7 +145,7 @@ fail:
return success;
}
static bool UnregServer(CLSID cls)
static bool UnregServer(const CLSID &cls)
{
wchar_t cls_str[CHARS_IN_GUID];
wchar_t temp[MAX_PATH];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册