search for: offsettodirectory

Displaying 1 result from an estimated 1 matches for "offsettodirectory".

2001 Dec 08
1
LoadOEMResource crash [Was: Re: Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA? ]
...ORY_ENTRY *)(dir + 1); min = dir->NumberOfNamedEntries; max = min + dir->NumberOfIdEntries - 1; while (min <= max) { pos = (min + max) / 2; if (entry[pos].u1.s2.Id == id) return (IMAGE_RESOURCE_DIRECTORY *)((char *)root + entry[pos].u2.s3.OffsetToDirectory); if (entry[pos].u1.s2.Id > id) max = pos - 1; else min = pos + 1; } return NULL; } Where the offending line is min = dir->NumberOfNamedEntries; It looks like the call was made with dir = 0x0045F000, id = 0xE, and I'm not sure about root. Probably fi...