Skip to content

Instantly share code, notes, and snippets.

@atrosinenko
Last active January 23, 2020 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atrosinenko/f61a4865f35e4702ae3a1f8a49aee71e to your computer and use it in GitHub Desktop.
Save atrosinenko/f61a4865f35e4702ae3a1f8a49aee71e to your computer and use it in GitHub Desktop.
Patched MemTest86+ v5.1
From http://forum.canardpc.com/threads/117454-PATCH-Fix-for-Freeze-on-test-7-in-SMP-mode
---
--- a/test.c
+++ b/test.c
@@ -1202,7 +1202,7 @@ void block_move(int iter, int me)
} else {
pe = end;
}
- if (pe >= end) {
+ if ((pe >= end && end != 0) || (pe < p && end == 0)) {
pe = end;
done++;
}
@@ -1280,7 +1280,7 @@ void block_move(int iter, int me)
} else {
pe = end;
}
- if (pe >= end) {
+ if ((pe >= end && end != 0) || (pe < p && end == 0)) {
pe = end;
done++;
}
@@ -1359,7 +1359,7 @@ void block_move(int iter, int me)
} else {
pe = end;
}
- if (pe >= end) {
+ if ((pe >= end && end != 0) || (pe < p && end == 0)) {
pe = end;
done++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment