Re: kernel32.dll: Reduce Registry access to KEY_READ or MAXIMUM_ALLOWED wherever possible (try 2)
28 Nov
2009
28 Nov
'09
10:10 p.m.
2009/11/27 Paul Chitescu <paulc(a)voip.null.ro>:
--- ./dlls/kernel32/locale.c.orig 2009-11-02 05:45:10.000000000 +0200 +++ ./dlls/kernel32/locale.c 2009-11-26 19:35:39.000000000 +0200 @@ -3017,7 +3017,7 @@ RtlInitUnicodeString( &keyName, szKeyName ); InitializeObjectAttributes(&attr, &keyName, 0, hRootKey, NULL);
- if (NtOpenKey( &hkey, KEY_ALL_ACCESS, &attr ) != STATUS_SUCCESS) + if (NtOpenKey( &hkey, MAXIMUM_ALLOWED, &attr ) != STATUS_SUCCESS) hkey = 0;
return hkey;
This is ugly. The function should be changed to allow the required access rights to be specified. -- Rob Shearman
5859
Age (days ago)
5859
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rob Shearman