summaryrefslogtreecommitdiffstats
path: root/src/PEImage.cpp
diff options
context:
space:
mode:
authorRainer Schuetze <r.sagitario@gmx.de>2018-03-31 06:24:53 (GMT)
committerGitHub <noreply@github.com>2018-03-31 06:24:53 (GMT)
commitdf1a89bef43e5c62ecfac896002717993fe8a758 (patch)
tree0162a00bd2b35b1f18ca4f402b51e9f65f063aae /src/PEImage.cpp
parentd67da0ec9481ca3ffe878ca68dfb64909040e231 (diff)
parentb78a52328e5d943fdc824468861a7fb0f6fe65b0 (diff)
downloadcv2pdb-df1a89bef43e5c62ecfac896002717993fe8a758.zip
cv2pdb-df1a89bef43e5c62ecfac896002717993fe8a758.tar.gz
cv2pdb-df1a89bef43e5c62ecfac896002717993fe8a758.tar.bz2
Merge pull request #26 from AlexWhiter/master
Writing of RSDS section to EXE with symbols in DBG.
Diffstat (limited to 'src/PEImage.cpp')
-rw-r--r--src/PEImage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PEImage.cpp b/src/PEImage.cpp
index 4cd3675..9a61c3a 100644
--- a/src/PEImage.cpp
+++ b/src/PEImage.cpp
@@ -330,8 +330,7 @@ bool PEImage::initDbgPtr(bool initDbgDir)
nsec = dbg->NumberOfSections;
symtable = (char*)(sec + nsec);
- nsym = dbg->ExportedNamesSize;
- strtable = symtable + nsym * IMAGE_SIZEOF_SYMBOL;
+ strtable = symtable + dbg->ExportedNamesSize;
if(dbg->DebugDirectorySize <= IMAGE_DIRECTORY_ENTRY_DEBUG)
return setError("too few entries in data directory");