summaryrefslogtreecommitdiff
path: root/src/utilcode/genericstackprobe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utilcode/genericstackprobe.cpp')
-rw-r--r--src/utilcode/genericstackprobe.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utilcode/genericstackprobe.cpp b/src/utilcode/genericstackprobe.cpp
index 35bcf1dcb1..aa7e198885 100644
--- a/src/utilcode/genericstackprobe.cpp
+++ b/src/utilcode/genericstackprobe.cpp
@@ -43,7 +43,7 @@ void DontCallDirectlyForceStackOverflow()
sp = (UINT_PTR *)&sp;
while (TRUE)
{
- sp -= (OS_PAGE_SIZE / sizeof(UINT_PTR));
+ sp -= (GetOsPageSize() / sizeof(UINT_PTR));
*sp = NULL;
}
@@ -312,11 +312,11 @@ void BaseStackMarker::SetMarker(float numPages)
// won't be the exact SP; however it will be close enough.
LPVOID pStack = &numPages;
- UINT_PTR *pMarker = (UINT_PTR*)pStack - (int)(OS_PAGE_SIZE / sizeof(UINT_PTR) * m_numPages);
+ UINT_PTR *pMarker = (UINT_PTR*)pStack - (int)(GetOsPageSize() / sizeof(UINT_PTR) * m_numPages);
// We might not have committed our stack yet, so allocate the number of pages
// we need so that they will be commited and we won't AV when we try to set the mark.
- _alloca( (int)(OS_PAGE_SIZE * m_numPages) );
+ _alloca( (int)(GetOsPageSize() * m_numPages) );
m_pMarker = pMarker;
*m_pMarker = STACK_COOKIE_VALUE;