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 )
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;
}
......
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