Commit 6ceb6c7f authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntoskrnl.exe: Return zero for unknown msr registers.

rdmsr should fault if called with the register not supported by CPU. But until we want to support the full range of CPU specific registers returning zero is probably a better fallback. Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6255b031
......@@ -815,7 +815,11 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
context->Rax = (ULONG)syscall_address;
break;
}
default: return ExceptionContinueSearch;
default:
FIXME("reg %#x, returning 0.\n", reg);
context->Rdx = 0;
context->Rax = 0;
break;
}
context->Rip += prefixlen + 2;
return ExceptionContinueExecution;
......
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