<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Alexandre Julliard wrote:
<blockquote cite="mid:87k5mgaad8.fsf@wine.dyndns.org" type="cite">
<pre wrap="">Andrey Turkin <a class="moz-txt-link-rfc2396E" href="mailto:andrey.turkin@gmail.com"><andrey.turkin@gmail.com></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">+ 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)
+ {
</pre>
</blockquote>
<pre wrap=""><!---->
It doesn't make sense to check an RVA against PointerToRawData.
</pre>
</blockquote>
<br>
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.<br>
</body>
</html>