summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp')
-rw-r--r--src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp b/src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp
index 4c058a8987..7b04c548cc 100644
--- a/src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp
+++ b/src/pal/tests/palsuite/miscellaneous/IsBadWritePtr/test3/test3.cpp
@@ -14,8 +14,6 @@
#include <palsuite.h>
-#define PAGE_SIZE 4096
-
int __cdecl main(int argc, char *argv[]) {
LPVOID PageOne;
@@ -30,7 +28,7 @@ int __cdecl main(int argc, char *argv[]) {
*/
PageOne = VirtualAlloc(NULL,
- PAGE_SIZE,
+ GetOsPageSize(),
MEM_COMMIT,
PAGE_READONLY);
@@ -39,7 +37,7 @@ int __cdecl main(int argc, char *argv[]) {
Fail("ERROR: VirtualAlloc failed to commit the required memory.\n");
}
- if(IsBadWritePtr(PageOne,PAGE_SIZE) == 0)
+ if(IsBadWritePtr(PageOne,GetOsPageSize()) == 0)
{
VirtualFree(PageOne,0,MEM_RELEASE);