mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +00:00
[GFLAGS] Use the registry access flags passed in
This commit is contained in:
parent
8d8188b679
commit
027df341f3
|
@ -18,7 +18,7 @@ BOOL OpenImageFileExecOptions(IN REGSAM SamDesired, IN OPTIONAL PCWSTR ImageName
|
|||
LONG Ret;
|
||||
HKEY HandleKey, HandleSubKey;
|
||||
|
||||
Ret = RegOpenKeyExW(HKEY_LOCAL_MACHINE, ImageExecOptionsString, 0, KEY_WRITE | KEY_READ, &HandleKey);
|
||||
Ret = RegOpenKeyExW(HKEY_LOCAL_MACHINE, ImageExecOptionsString, 0, SamDesired, &HandleKey);
|
||||
if (Ret != ERROR_SUCCESS)
|
||||
{
|
||||
wprintf(L"OpenIFEO: RegOpenKeyEx failed (%d)\n", Ret);
|
||||
|
@ -31,7 +31,7 @@ BOOL OpenImageFileExecOptions(IN REGSAM SamDesired, IN OPTIONAL PCWSTR ImageName
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
Ret = RegCreateKeyExW(HandleKey, ImageName, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE | KEY_READ, NULL, &HandleSubKey, NULL);
|
||||
Ret = RegCreateKeyExW(HandleKey, ImageName, 0, NULL, REG_OPTION_NON_VOLATILE, SamDesired, NULL, &HandleSubKey, NULL);
|
||||
CloseHandle(HandleKey);
|
||||
|
||||
if (Ret != ERROR_SUCCESS)
|
||||
|
|
Loading…
Reference in a new issue