Commit b743127c authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

ole32: Do not open registry keys with no access rights.

parent 57fa1bee
...@@ -245,7 +245,7 @@ static HRESULT COMCAT_IsClassOfCategories( ...@@ -245,7 +245,7 @@ static HRESULT COMCAT_IsClassOfCategories(
if (res != ERROR_SUCCESS) return S_FALSE; if (res != ERROR_SUCCESS) return S_FALSE;
for (string = impl_strings; *string; string += CHARS_IN_GUID) { for (string = impl_strings; *string; string += CHARS_IN_GUID) {
HKEY catkey; HKEY catkey;
res = open_classes_key(subkey, string, 0, &catkey); res = open_classes_key(subkey, string, READ_CONTROL, &catkey);
if (res != ERROR_SUCCESS) { if (res != ERROR_SUCCESS) {
RegCloseKey(subkey); RegCloseKey(subkey);
return S_FALSE; return S_FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment