msi: detect registry keypaths

Aric Stewart aric at codeweavers.com
Sat Feb 19 05:20:40 CST 2005


modify MsiGetCompnentPath to be able to detect registry keypaths. Does 
not yet check for the presence of said registry key.
-------------- next part --------------
Index: dlls/msi/msi.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/msi.c,v
retrieving revision 1.63
diff -u -u -r1.63 msi.c
--- dlls/msi/msi.c	16 Feb 2005 17:52:53 -0000	1.63
+++ dlls/msi/msi.c	19 Feb 2005 11:08:16 -0000
@@ -1169,11 +1169,22 @@
     TRACE("found path of (%s:%s)(%s)\n", debugstr_w(szComponent),
            debugstr_w(szProduct), debugstr_w(path));
 
-    FIXME("Only working for installed files, not registry keys\n");
-    if ( GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES )
-        rrc = INSTALLSTATE_LOCAL;
+    if (path[0]=='0')
+    {
+        FIXME("Registry entry.. check entry\n");
+        if (path[0])
+            rrc = INSTALLSTATE_LOCAL;
+        else
+            rrc = INSTALLSTATE_ABSENT;
+    }
     else
-        rrc = INSTALLSTATE_ABSENT;
+    {
+        /* PROBIBLY a file */
+        if ( GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES )
+            rrc = INSTALLSTATE_LOCAL;
+        else
+            rrc = INSTALLSTATE_ABSENT;
+    }
 
     if( pcchBuf )
     {


More information about the wine-patches mailing list