- Some resources are generated without setting a Major/Minor version in the resource directory
- This is legal, and we shouldn't skip parsing the resource
Commit migrated from https://github.com/dotnet/coreclr/commit/
046d9d4fe9206396fac4a9e0c7b7c8b5801947b3
IMAGE_RESOURCE_DIRECTORY *pResourceDirectory = (IMAGE_RESOURCE_DIRECTORY *)GetRvaData(rva);
- if (pResourceDirectory->MajorVersion != 4)
- return 0;
-
- if (pResourceDirectory->MinorVersion != 0)
- return 0;
-
// Check to see if entire resource dictionary is accessible
if (!CheckRva(rva + sizeof(IMAGE_RESOURCE_DIRECTORY),
(sizeof(IMAGE_RESOURCE_DIRECTORY_ENTRY) * pResourceDirectory->NumberOfNamedEntries) +