Commit 18986ee0 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent 35e66342
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment