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:
Thomas Faber 2015-11-27 12:26:16 +01:00 committed by Alexandre Julliard
parent 57fa1bee65
commit b743127c3c
1 changed files with 1 additions and 1 deletions

View File

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