msi: Fix detection of installed global assemblies.

This commit is contained in:
Hans Leidekker 2011-01-11 10:28:35 +01:00 committed by Alexandre Julliard
parent 0c25649d3e
commit 65581e0e33
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ static BOOL check_assembly_installed( MSIPACKAGE *package, MSIASSEMBLY *assembly
memset( &info, 0, sizeof(info) ); memset( &info, 0, sizeof(info) );
info.cbAssemblyInfo = sizeof(info); info.cbAssemblyInfo = sizeof(info);
hr = IAssemblyCache_QueryAssemblyInfo( cache, QUERYASMINFO_FLAG_VALIDATE, assembly->display_name, &info ); hr = IAssemblyCache_QueryAssemblyInfo( cache, QUERYASMINFO_FLAG_VALIDATE, assembly->display_name, &info );
if (hr != S_OK) if (hr != HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER))
return FALSE; return FALSE;
return (info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED); return (info.dwAssemblyFlags == ASSEMBLYINFO_FLAG_INSTALLED);