diff options
Diffstat (limited to 'src/cv2pdb.cpp')
-rw-r--r-- | src/cv2pdb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cv2pdb.cpp b/src/cv2pdb.cpp index 95749bc..84cf5f2 100644 --- a/src/cv2pdb.cpp +++ b/src/cv2pdb.cpp @@ -3432,14 +3432,14 @@ bool CV2PDB::addSymbols() return rc;
}
-bool CV2PDB::writeImage(const TCHAR* opath)
+bool CV2PDB::writeImage(const TCHAR* opath, PEImage& exeImage)
{
int len = sizeof(*rsds) + strlen((char*)(rsds + 1)) + 1;
- if (!img.replaceDebugSection(rsds, len, true))
- return setError(img.getLastError());
+ if (!exeImage.replaceDebugSection(rsds, len, true))
+ return setError(exeImage.getLastError());
- if (!img.save(opath))
- return setError(img.getLastError());
+ if (!exeImage.save(opath))
+ return setError(exeImage.getLastError());
return true;
}
|