Skip to content

Commit 3dbc2b0

Browse files
committed
show executable version in info text
1 parent 11fe063 commit 3dbc2b0

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

‎heob-inj.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5149,6 +5149,7 @@ VOID CALLBACK heob( ULONG_PTR arg )
51495149
addModule( appMod );
51505150
replaceModFuncs();
51515151

5152+
writeModsFindApp( NULL,NULL,&rd->exe );
51525153
GetModuleFileNameW( NULL,rd->exe.path,MAX_PATH );
51535154
rd->master = ld->master;
51545155
rd->noCRT = ld->noCRT;

‎heob.c‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,6 +1719,13 @@ static CODE_SEG(".text$2") HANDLE inject(
17191719
{
17201720
data->exe.path[MAX_PATH-1] = 0;
17211721
GetFullPathNameW( data->exe.path,MAX_PATH,exePath,NULL );
1722+
1723+
ad->mi_a = HeapAlloc( heap,0,sizeof(modInfo) );
1724+
if( ad->mi_a )
1725+
{
1726+
ad->mi_q = 1;
1727+
RtlMoveMemory( ad->mi_a,&data->exe,sizeof(modInfo) );
1728+
}
17221729
}
17231730

17241731
if( data->noCRT==2 )
@@ -4205,7 +4212,10 @@ static void printAttachedProcessInfo( appData *ad,textColor *tc )
42054212
if( !api ) return;
42064213
if( tc->fTextColor==&TextColorConsole && isConsoleOwner() )
42074214
printf( "\n$Iheob command line: $N%S\n",ad->cmdLineW );
4208-
printf( "\n$Iapplication: $N%S\n",ad->exePathW );
4215+
printf( "\n$Iapplication: $N%S",ad->exePathW );
4216+
if( ad->mi_q )
4217+
writeModuleInfo( tc,ad->mi_a );
4218+
printf( "\n" );
42094219
if( api->type>=0 && api->type<=3 )
42104220
{
42114221
const char *types[4] = {
@@ -6981,7 +6991,10 @@ static int isMinidump( appData *ad,const wchar_t *name )
69816991
if( mtl && ad->dump_mod_a )
69826992
{
69836993
MINIDUMP_STRING *appName = REL_PTR( dump,ad->dump_mod_a[0].ModuleNameRva );
6984-
printf( "\n$Iapplication: $N%S\n",appName->Buffer );
6994+
printf( "\n$Iapplication: $N%S",appName->Buffer );
6995+
if( ad->mi_q )
6996+
writeModuleInfo( tc,ad->mi_a );
6997+
printf( "\n" );
69856998

69866999
#ifndef NO_THREADS
69877000
if( exception )

0 commit comments

Comments
 (0)