msi: A component with an empty path is not used.
This commit is contained in:
parent
dfb1f4f55b
commit
a36d06c003
|
@ -986,6 +986,7 @@ INSTALLSTATE WINAPI MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
|
||||||
UINT rc;
|
UINT rc;
|
||||||
HKEY hkey = 0;
|
HKEY hkey = 0;
|
||||||
LPWSTR path = NULL;
|
LPWSTR path = NULL;
|
||||||
|
INSTALLSTATE r;
|
||||||
|
|
||||||
TRACE("%s %s %p %p\n", debugstr_w(szProduct),
|
TRACE("%s %s %p %p\n", debugstr_w(szProduct),
|
||||||
debugstr_w(szComponent), lpPathBuf->str.w, pcchBuf);
|
debugstr_w(szComponent), lpPathBuf->str.w, pcchBuf);
|
||||||
|
@ -1018,13 +1019,15 @@ INSTALLSTATE WINAPI MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
|
||||||
if (!path)
|
if (!path)
|
||||||
return INSTALLSTATE_UNKNOWN;
|
return INSTALLSTATE_UNKNOWN;
|
||||||
|
|
||||||
if (path[0]=='0')
|
if (path[0])
|
||||||
FIXME("Registry entry.. check entry\n");
|
r = INSTALLSTATE_LOCAL;
|
||||||
|
else
|
||||||
|
r = INSTALLSTATE_NOTUSED;
|
||||||
|
|
||||||
msi_strcpy_to_awstring( path, lpPathBuf, pcchBuf );
|
msi_strcpy_to_awstring( path, lpPathBuf, pcchBuf );
|
||||||
|
|
||||||
msi_free( path );
|
msi_free( path );
|
||||||
return INSTALLSTATE_LOCAL;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
|
|
Loading…
Reference in New Issue