Commit b98ef8f0 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Treat an empty install location as missing.

parent 6a7bf66b
...@@ -2305,9 +2305,12 @@ static WCHAR *get_install_location( MSIPACKAGE *package ) ...@@ -2305,9 +2305,12 @@ static WCHAR *get_install_location( MSIPACKAGE *package )
WCHAR *path; WCHAR *path;
if (!package->ProductCode) return NULL; if (!package->ProductCode) return NULL;
if (MSIREG_OpenInstallProps( package->ProductCode, package->Context, NULL, &hkey, FALSE )) if (MSIREG_OpenInstallProps( package->ProductCode, package->Context, NULL, &hkey, FALSE )) return NULL;
return NULL; if ((path = msi_reg_get_val_str( hkey, szInstallLocation )) && !path[0])
path = msi_reg_get_val_str( hkey, szInstallLocation ); {
msi_free( path );
path = NULL;
}
RegCloseKey( hkey ); RegCloseKey( hkey );
return path; return path;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment