Oops, used copy to caller instead of copy from caller

svn path=/trunk/; revision=2378
This commit is contained in:
David Welch 2001-11-18 01:28:50 +00:00
parent 189a5e8404
commit 57300d2523

View file

@ -456,14 +456,14 @@ KiUserTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr, PVOID Cr2)
Frame = (PULONG)Tf->Ebp;
while (Frame != NULL)
{
Status = MmCopyToCaller(&ReturnAddress, &Frame[1], sizeof(ULONG));
Status = MmCopyFromCaller(&ReturnAddress, &Frame[1], sizeof(ULONG));
if (!NT_SUCCESS(Status))
{
DbgPrint("????????\n");
break;
}
print_address((PVOID)ReturnAddress);
Status = MmCopyToCaller(&NextFrame, &Frame[0], sizeof(ULONG));
Status = MmCopyFromCaller(&NextFrame, &Frame[0], sizeof(ULONG));
if (!NT_SUCCESS(Status))
{
DbgPrint("Frame is inaccessible.\n");