mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
syscalldump: fix output of apfnSimpleCall array on 64 bit
svn path=/trunk/; revision=32971
This commit is contained in:
parent
786cf453f1
commit
e668a1ae2f
1 changed files with 23 additions and 8 deletions
|
@ -77,7 +77,7 @@ int main(int argc, char* argv[])
|
||||||
UINT i;
|
UINT i;
|
||||||
PVOID pW32pServiceTable, pW32pServiceLimit;
|
PVOID pW32pServiceTable, pW32pServiceLimit;
|
||||||
PBYTE pW32pArgumentTable;
|
PBYTE pW32pArgumentTable;
|
||||||
PVOID *pfnSimpleCall;
|
PVOID pfnSimpleCall;
|
||||||
DWORD dwServiceLimit;
|
DWORD dwServiceLimit;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|
@ -187,14 +187,29 @@ cont:
|
||||||
printf("\nDumping apfnSimpleCall:\n");
|
printf("\nDumping apfnSimpleCall:\n");
|
||||||
pfnSimpleCall = (PVOID*)ImageSymToVa(hProcess, &Sym.Symbol, pModule, "apfnSimpleCall");
|
pfnSimpleCall = (PVOID*)ImageSymToVa(hProcess, &Sym.Symbol, pModule, "apfnSimpleCall");
|
||||||
i = 0;
|
i = 0;
|
||||||
while (pfnSimpleCall[i] != NULL)
|
|
||||||
{
|
|
||||||
printf("0x%x:", i);
|
|
||||||
SymEnumSymbolsForAddr(hProcess, (DWORD64)(ULONG_PTR)pfnSimpleCall[i], EnumSymbolsProc, (PVOID)-1);
|
|
||||||
printf("\n");
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (bX64)
|
||||||
|
{
|
||||||
|
DWORD64 *pfnSC64 = (DWORD64*)pfnSimpleCall;
|
||||||
|
while (pfnSC64[i] != 0)
|
||||||
|
{
|
||||||
|
printf("0x%x:", i);
|
||||||
|
SymEnumSymbolsForAddr(hProcess, (DWORD64)pfnSC64[i], EnumSymbolsProc, (PVOID)-1);
|
||||||
|
printf("\n");
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DWORD *pfnSC32 = (DWORD*)pfnSimpleCall;
|
||||||
|
while (pfnSC32[i] != 0)
|
||||||
|
{
|
||||||
|
printf("0x%x:", i);
|
||||||
|
SymEnumSymbolsForAddr(hProcess, (DWORD64)pfnSC32[i], EnumSymbolsProc, (PVOID)-1);
|
||||||
|
printf("\n");
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (pModule)
|
if (pModule)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue