[version/info.c] Remove wrong error path
Paul Vriens
Paul.Vriens at xs4all.nl
Tue Jul 26 15:15:00 CDT 2005
Hi,
I got an error from GetFileVersionInfoW while it was perfectly able to
load a 16bit resource. The check and corresponding ERR is not correct.
Changelog
Remove wrong check
Cheers,
Paul
Index: dlls/version/info.c
===================================================================
RCS file: /home/wine/wine/dlls/version/info.c,v
retrieving revision 1.50
diff -u -p -r1.50 info.c
--- dlls/version/info.c 26 Jul 2005 18:25:34 -0000 1.50
+++ dlls/version/info.c 26 Jul 2005 20:14:09 -0000
@@ -622,14 +622,9 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR
}
}
- 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;
More information about the wine-patches
mailing list