mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 01:41:48 +00:00
Apply r44496 change to raddr2line, too. Remove unused argument.
svn path=/trunk/; revision=44515
This commit is contained in:
parent
19b6017a4d
commit
c194b44a25
1 changed files with 8 additions and 4 deletions
|
@ -16,10 +16,14 @@
|
||||||
|
|
||||||
#include "rsym.h"
|
#include "rsym.h"
|
||||||
|
|
||||||
|
/* Assume if an offset > ABS_TRESHOLD, then it must be absolute */
|
||||||
|
#define ABS_TRESHOLD 0x00400000L
|
||||||
|
|
||||||
size_t fixup_offset ( size_t ImageBase, size_t offset )
|
size_t fixup_offset ( size_t ImageBase, size_t offset )
|
||||||
{
|
{
|
||||||
// if ( offset >= ImageBase )
|
if (offset > ABS_TRESHOLD)
|
||||||
// offset -= ImageBase;
|
offset -= ImageBase;
|
||||||
|
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +101,7 @@ find_and_print_offset (
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
process_data ( const void* FileData, size_t FileSize, size_t offset )
|
process_data ( const void* FileData, size_t offset )
|
||||||
{
|
{
|
||||||
PIMAGE_DOS_HEADER PEDosHeader;
|
PIMAGE_DOS_HEADER PEDosHeader;
|
||||||
PIMAGE_FILE_HEADER PEFileHeader;
|
PIMAGE_FILE_HEADER PEFileHeader;
|
||||||
|
@ -158,7 +162,7 @@ process_file ( const char* file_name, size_t offset )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
res = process_data ( FileData, FileSize, offset );
|
res = process_data ( FileData, offset );
|
||||||
free ( FileData );
|
free ( FileData );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue