Fix wrong check for source pages count from page list on MapPhysicalMemory
This commit is contained in:
parent
8be0a1dbcf
commit
f20a3648de
1 changed files with 2 additions and 2 deletions
|
@ -1527,7 +1527,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
|
||||
while (DstVaPages > 0)
|
||||
{
|
||||
if (PageNode.PagesCount == 0)
|
||||
if (SrcPaPages == 0)
|
||||
{
|
||||
PageListNode = PageListNode.Next;
|
||||
|
||||
|
@ -1537,7 +1537,7 @@ namespace Ryujinx.HLE.HOS.Kernel
|
|||
SrcPaPages = PageNode.PagesCount;
|
||||
}
|
||||
|
||||
ulong PagesCount = PageNode.PagesCount;
|
||||
ulong PagesCount = SrcPaPages;
|
||||
|
||||
if (PagesCount > DstVaPages)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue