msi: Check the return value of VerQueryValueW in msi_get_disk_file_version.

This commit is contained in:
Rob Shearman 2007-06-26 22:22:52 +01:00 committed by Alexandre Julliard
parent 61e1d1379e
commit 9c6fac65d8
1 changed files with 5 additions and 1 deletions

View File

@ -1982,7 +1982,11 @@ static LPWSTR msi_get_disk_file_version( LPCWSTR filename )
version = msi_alloc( versize );
GetFileVersionInfoW( filename, 0, versize, version );
VerQueryValueW( version, name, (LPVOID*)&lpVer, &sz );
if (!VerQueryValueW( version, name, (LPVOID*)&lpVer, &sz ))
{
msi_free( version );
return NULL;
}
msi_free( version );
sprintfW( filever, name_fmt,