1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

use HKLM for wine

This commit is contained in:
FunkyFr3sh 2024-12-06 22:09:53 +01:00
parent 4b9bd890a4
commit c77a6ce19e

View File

@ -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,