1
0
Fork 0

DBG: also set pDebuggedBase and check hash on attach (fixes #1674)

This commit is contained in:
mrexodia 2017-08-01 22:33:54 +02:00
parent 6059511296
commit 43458b0881
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 2 additions and 2 deletions

View File

@ -1486,10 +1486,10 @@ static void cbCreateProcess(CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo)
BpEnumAll(cbSetModuleBreakpoints, "");
GuiUpdateBreakpointsView();
pCreateProcessBase = (duint)CreateProcessInfo->lpBaseOfImage;
pDebuggedBase = pCreateProcessBase; //debugged base = executable
DbCheckHash(ModContentHashFromAddr(pDebuggedBase)); //Check hash mismatch
if(!bFileIsDll && !bIsAttached) //Set entry breakpoint
{
pDebuggedBase = pCreateProcessBase; //debugged base = executable
DbCheckHash(ModContentHashFromAddr(pDebuggedBase)); //Check hash mismatch
char command[deflen] = "";
if(settingboolget("Events", "TlsCallbacks"))