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

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 1 10:44:06 CST 2016


Module: wine
Branch: master
Commit: b743127c3ca7278553db834c9e48579a0e03769f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b743127c3ca7278553db834c9e48579a0e03769f

Author: Thomas Faber <thomas.faber at reactos.org>
Date:   Fri Nov 27 12:26:16 2015 +0100

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

Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/comcat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ole32/comcat.c b/dlls/ole32/comcat.c
index 46a722e..eb5a927 100644
--- a/dlls/ole32/comcat.c
+++ b/dlls/ole32/comcat.c
@@ -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;




More information about the wine-cvs mailing list