mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-24 03:39:07 +02:00
Net: Fix memory corruption on save old state.
Can't restore these if they're not inited either.
This commit is contained in:
1 parent
b5712efdfb
commit
fcaef648ec
3 files changed
+10
-3
No files matched your search
@@ -650,7 +650,9 @@ void __NetAdhocDoState(PointerWrap &p) {
|
||||
|
||||
if (s >= 2) {
|
||||
Do(p, actionAfterMatchingMipsCall);
|
||||
__KernelRestoreActionType(actionAfterMatchingMipsCall, AfterMatchingMipsCall::Create);
|
||||
if (actionAfterMatchingMipsCall != -1) {
|
||||
__KernelRestoreActionType(actionAfterMatchingMipsCall, AfterMatchingMipsCall::Create);
|
||||
}
|
||||
|
||||
Do(p, dummyThreadHackAddr);
|
||||
}
|
||||
@@ -660,7 +662,9 @@ void __NetAdhocDoState(PointerWrap &p) {
|
||||
}
|
||||
if (s >= 3) {
|
||||
Do(p, actionAfterAdhocMipsCall);
|
||||
__KernelRestoreActionType(actionAfterAdhocMipsCall, AfterAdhocMipsCall::Create);
|
||||
if (actionAfterAdhocMipsCall != -1) {
|
||||
__KernelRestoreActionType(actionAfterAdhocMipsCall, AfterAdhocMipsCall::Create);
|
||||
}
|
||||
|
||||
Do(p, matchingThreadHackAddr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user