mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
Fixed bug in SwitchTable
svn path=/trunk/; revision=2555
This commit is contained in:
parent
6c0fa06e39
commit
72e047dd5b
1 changed files with 11 additions and 11 deletions
|
@ -2449,7 +2449,6 @@ COMMAND_PROTOTYPE(UnassembleAtCurrentEip)
|
||||||
COMMAND_PROTOTYPE(SwitchTables)
|
COMMAND_PROTOTYPE(SwitchTables)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
PDEBUG_MODULE pMod;
|
|
||||||
|
|
||||||
DPRINT((0,"SwitchTables()\n"));
|
DPRINT((0,"SwitchTables()\n"));
|
||||||
|
|
||||||
|
@ -2472,16 +2471,17 @@ COMMAND_PROTOTYPE(SwitchTables)
|
||||||
// 1 argument -> set new current symbols
|
// 1 argument -> set new current symbols
|
||||||
else if(pArgs->Count == 1)
|
else if(pArgs->Count == 1)
|
||||||
{
|
{
|
||||||
PDEBUG_MODULE pTempMod;
|
PDEBUG_MODULE pTempMod;
|
||||||
char temp[DEBUG_MODULE_NAME_LEN];
|
char temp[DEBUG_MODULE_NAME_LEN];
|
||||||
CopyWideToAnsi(temp,pMod->name);
|
|
||||||
|
pCurrentSymbols = (PICE_SYMBOLFILE_HEADER*)pArgs->Value[0];
|
||||||
pCurrentSymbols = FindModuleSymbolsByModuleName( temp );
|
CopyWideToAnsi( temp, pCurrentSymbols->name );
|
||||||
DPRINT((2,"TableSwitchSym: pCurrentSymbols: %x, Name: %S\n", pCurrentSymbols, pCurrentSymbols->name));
|
|
||||||
|
DPRINT((2,"TableSwitchSym: pCurrentSymbols: %x, Name: %s\n", pCurrentSymbols, temp));
|
||||||
pTempMod = IsModuleLoaded(temp);
|
|
||||||
if( pTempMod )
|
pTempMod = IsModuleLoaded(temp);
|
||||||
pCurrentMod = pTempMod;
|
if( pTempMod )
|
||||||
|
pCurrentMod = pTempMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue