[PATCH] mshtml: Also allow REG_EXPAND_SZ for cab/gecko locations

Marcus Meissner marcus at jet.franken.de
Wed Feb 4 12:21:02 CST 2009


Hi,

ReactOS likes to use REG_EXPAND_SZ here too, so allow it.

Ciao, Marcus
---
 dlls/mshtml/install.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/install.c b/dlls/mshtml/install.c
index 911254a..ffd15ab 100644
--- a/dlls/mshtml/install.c
+++ b/dlls/mshtml/install.c
@@ -235,7 +235,7 @@ static BOOL install_from_registered_dir(void)
         res = RegQueryValueExA(hkey, "GeckoCabDir", NULL, &type, (PBYTE)file_name, &size);
     }
     RegCloseKey(hkey);
-    if(res != ERROR_SUCCESS || type != REG_SZ) {
+    if(res != ERROR_SUCCESS || (type != REG_SZ && type != REG_EXPAND_SZ)) {
         heap_free(file_name);
         return FALSE;
     }
-- 
1.5.6



More information about the wine-patches mailing list