From af812605fbf2a9ba405af485384938fcde38cda4 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 24 Feb 2005 10:05:53 +0000 Subject: [PATCH] Do some basic work with registry component paths. --- dlls/msi/msi.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index c9db2d4bbf3..e31af7efb7f 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -1169,11 +1169,19 @@ INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR szProduct, LPCWSTR szComponent, 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 ) { -- 2.11.4.GIT