use HKLM for wine
This commit is contained in:
parent
4b9bd890a4
commit
c77a6ce19e
1 changed files with 3 additions and 1 deletions
|
@ -73,10 +73,12 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||
|
||||
/* add registry key for x264vfw */
|
||||
|
||||
BOOL is_wine = real_GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version") != 0;
|
||||
|
||||
HKEY hkey;
|
||||
LONG status =
|
||||
RegCreateKeyExA(
|
||||
HKEY_CURRENT_USER,
|
||||
is_wine ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER,
|
||||
"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
|
||||
0,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue