Remove wrong check.

This commit is contained in:
Paul Vriens 2005-07-27 12:05:38 +00:00 committed by Alexandre Julliard
parent b1a9701bb5
commit a16fcbe5ba
1 changed files with 3 additions and 8 deletions

View File

@ -622,14 +622,9 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
}
}
if ( datasize >= sizeof(VS_VERSION_INFO_STRUCT16) &&
datasize >= ((VS_VERSION_INFO_STRUCT16 *)data)->wLength &&
VersionInfoIs16( data ) )
{
ERR("Cannot access NE resource in %s\n", debugstr_w(filename) );
SetLastError(ERROR_RESOURCE_DATA_NOT_FOUND);
return FALSE;
}
/* If we end up here we have found either 16bit or 32bit
* version information
*/
SetLastError(0);
return TRUE;