dongle: add vid and pid arguments

This commit is contained in:
2023-01-25 21:09:38 -05:00
parent 914ddc3e93
commit fd99f8956a
6 changed files with 211 additions and 28 deletions

View File

@ -4,7 +4,8 @@ HRESULT platform_hook_init(
const struct platform_config *cfg,
enum platform_type type,
jvs_provider_t jvs,
HMODULE redir_mod
HMODULE redir_mod,
struct dongle_info d_info
)
{
HRESULT hr;
@ -56,7 +57,7 @@ HRESULT platform_hook_init(
return hr;
}
hr = es3sec_hook_init(&cfg->dongle, "", "");
hr = es3sec_hook_init(&cfg->dongle, d_info.vid, d_info.pid);
if (FAILED(hr)) {
return hr;