mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
use HKLM for wine
This commit is contained in:
parent
4b9bd890a4
commit
c77a6ce19e
@ -73,10 +73,12 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||||||
|
|
||||||
/* add registry key for x264vfw */
|
/* add registry key for x264vfw */
|
||||||
|
|
||||||
|
BOOL is_wine = real_GetProcAddress(GetModuleHandleA("ntdll.dll"), "wine_get_version") != 0;
|
||||||
|
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
LONG status =
|
LONG status =
|
||||||
RegCreateKeyExA(
|
RegCreateKeyExA(
|
||||||
HKEY_CURRENT_USER,
|
is_wine ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER,
|
||||||
"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
|
"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Drivers32",
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user