Module: wine Branch: refs/heads/master Commit: a36d06c0039fc95fdc77bc8fe99ea582ed0f5e4b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a36d06c0039fc95fdc77bc8f...
Author: Mike McCormack mike@codeweavers.com Date: Fri Jul 21 14:04:26 2006 +0900
msi: A component with an empty path is not used.
---
dlls/msi/msi.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 8f11de9..f197f47 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -986,6 +986,7 @@ INSTALLSTATE WINAPI MSI_GetComponentPath UINT rc; HKEY hkey = 0; LPWSTR path = NULL; + INSTALLSTATE r;
TRACE("%s %s %p %p\n", debugstr_w(szProduct), debugstr_w(szComponent), lpPathBuf->str.w, pcchBuf); @@ -1018,13 +1019,15 @@ INSTALLSTATE WINAPI MSI_GetComponentPath if (!path) return INSTALLSTATE_UNKNOWN;
- if (path[0]=='0') - FIXME("Registry entry.. check entry\n"); + if (path[0]) + r = INSTALLSTATE_LOCAL; + else + r = INSTALLSTATE_NOTUSED;
msi_strcpy_to_awstring( path, lpPathBuf, pcchBuf );
msi_free( path ); - return INSTALLSTATE_LOCAL; + return r; }
/******************************************************************