mirror of
https://github.com/reactos/wine.git
synced 2025-02-22 13:53:38 +00:00
ole32: Do not open registry keys with no access rights.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
57fa1bee65
commit
b743127c3c
@ -245,7 +245,7 @@ static HRESULT COMCAT_IsClassOfCategories(
|
||||
if (res != ERROR_SUCCESS) return S_FALSE;
|
||||
for (string = impl_strings; *string; string += CHARS_IN_GUID) {
|
||||
HKEY catkey;
|
||||
res = open_classes_key(subkey, string, 0, &catkey);
|
||||
res = open_classes_key(subkey, string, READ_CONTROL, &catkey);
|
||||
if (res != ERROR_SUCCESS) {
|
||||
RegCloseKey(subkey);
|
||||
return S_FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user