msi: resubmit MsiGetComponentPath
Aric Stewart
aric at codeweavers.com
Wed Feb 23 23:30:44 CST 2005
Do some basic work with registry component paths.
-------------- 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 24 Feb 2005 05:28:57 -0000
@@ -1169,11 +1169,19 @@
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");
+ rrc = INSTALLSTATE_LOCAL;
+ }
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