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