msi: Check the return value of VerQueryValueW in msi_get_disk_file_version.
This commit is contained in:
parent
61e1d1379e
commit
9c6fac65d8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue