[PATCH] dbghelp: Implement ImageDirectoryEntryToDataEx

Andrey Turkin andrey.turkin at gmail.com
Fri Jan 11 06:36:50 CST 2008


Alexandre Julliard wrote:
> Andrey Turkin <andrey.turkin at gmail.com> writes:
>
>   
>> +    if (image || addr < nt->OptionalHeader.SizeOfHeaders)
>> +    {
>> +        if (section)
>> +        {
>> +            PIMAGE_SECTION_HEADER sec = IMAGE_FIRST_SECTION(nt);
>> +            WORD i;
>> +            for(i = 0; i < nt->FileHeader.NumberOfSections; i++, sec++)
>> +            {
>> +                if (addr >= sec->PointerToRawData && (addr - sec->PointerToRawData) < sec->SizeOfRawData)
>> +                {
>>     
>
> It doesn't make sense to check an RVA against PointerToRawData.
>
>   

Oh, yes. I need more coffee :) And I should have been test native -
native doesn't even bother to search section unless it is file mapping
(MSDN is at least not complete, as usual). I'll send new version shortly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20080111/06d7c414/attachment.htm 


More information about the wine-devel mailing list