diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-04-04 15:09:44 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-04-04 15:09:44 +0400 |
commit | 9e1fe26d120edda1adc35a99b859c47106dd9867 (patch) | |
tree | f7b0abd132f5b4c1735a755c914d4362c30c7a3e /winsup/cygwin/hookapi.cc | |
parent | 7c1d11f7e82c0ff8563d4426262f1025ac03d6dc (diff) |
* hookapi.cc (rvadelta): Compute max_size using SizeOfRawData rather
than VirtualSize.
Diffstat (limited to 'winsup/cygwin/hookapi.cc')
-rw-r--r-- | winsup/cygwin/hookapi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 11280c6a2..ba9d55112 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -57,7 +57,7 @@ rvadelta (PIMAGE_NT_HEADERS pnt, DWORD import_rva, DWORD &max_size) && (section[i].VirtualAddress + section[i].Misc.VirtualSize) > import_rva) // if (ascii_strncasematch ((char *) section[i].Name, ".idata", IMAGE_SIZEOF_SHORT_NAME)) { - max_size = section[i].Misc.VirtualSize + max_size = section[i].SizeOfRawData - (import_rva - section[i].VirtualAddress); return section[i].VirtualAddress - section[i].PointerToRawData; } |