msi: Treat an empty install location as missing.
Hans Leidekker
hans at codeweavers.com
Tue May 7 08:00:55 CDT 2013
---
dlls/msi/action.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index 827a0c8..cf03fa2 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -2305,9 +2305,12 @@ static WCHAR *get_install_location( MSIPACKAGE *package )
WCHAR *path;
if (!package->ProductCode) return NULL;
- if (MSIREG_OpenInstallProps( package->ProductCode, package->Context, NULL, &hkey, FALSE ))
- return NULL;
- path = msi_reg_get_val_str( hkey, szInstallLocation );
+ if (MSIREG_OpenInstallProps( package->ProductCode, package->Context, NULL, &hkey, FALSE )) return NULL;
+ if ((path = msi_reg_get_val_str( hkey, szInstallLocation )) && !path[0])
+ {
+ msi_free( path );
+ path = NULL;
+ }
RegCloseKey( hkey );
return path;
}
--
1.7.10.4
More information about the wine-patches
mailing list