winedbg: Also recognize 'rep ret' as a valid return insn for i386 as we did for x86_64.

This commit is contained in:
Eric Pouech 2012-05-12 18:11:31 +02:00 committed by Alexandre Julliard
parent 35e663425d
commit 18986ee013
1 changed files with 5 additions and 0 deletions

View File

@ -354,6 +354,11 @@ static unsigned be_i386_is_function_return(const void* insn)
BYTE ch;
if (!dbg_read_memory(insn, &ch, sizeof(ch))) return FALSE;
if (ch == 0xF3) /* REP */
{
insn = (const char*)insn + 1;
if (!dbg_read_memory(insn, &ch, sizeof(ch))) return FALSE;
}
return (ch == 0xC2) || (ch == 0xC3);
}