Commit d82f06c0 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ntdll: Properly handle 0 returns from unw_step().

parent aa482426
......@@ -523,7 +523,11 @@ static NTSTATUS libunwind_virtual_unwind( ULONG_PTR ip, ULONG_PTR *frame, CONTEX
ip, (unsigned long)info.start_ip, (unsigned long)info.end_ip, (unsigned long)info.handler,
(unsigned long)info.lsda, (unsigned long)info.unwind_info );
rc = unw_step( &cursor );
if (!(rc = unw_step( &cursor )))
{
WARN( "last frame\n" );
return STATUS_SUCCESS;
}
if (rc < 0)
{
WARN( "failed to unwind: %d\n", rc );
......
......@@ -1524,7 +1524,12 @@ static NTSTATUS libunwind_virtual_unwind( ULONG64 ip, BOOL* got_info, ULONG64 *f
ip, (unsigned long)info.start_ip, (unsigned long)info.end_ip, (unsigned long)info.handler,
(unsigned long)info.lsda, (unsigned long)info.unwind_info );
rc = unw_step(&cursor);
if (!(rc = unw_step( &cursor )))
{
WARN( "last frame\n" );
*got_info = FALSE;
return STATUS_SUCCESS;
}
if (rc < 0)
{
WARN( "failed to unwind: %d\n", rc );
......
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