1.1 --- a/core/MemoryUtils.cpp Fri Apr 20 18:32:33 2007 +0000
1.2 +++ b/core/MemoryUtils.cpp Fri Apr 20 18:50:52 2007 +0000
1.3 @@ -21,17 +21,15 @@
1.4
1.5 MemoryUtils g_MemUtils;
1.6
1.7 +#if 0
1.8 MemoryUtils::MemoryUtils()
1.9 {
1.10 #ifdef PLATFORM_WINDOWS
1.11
1.12 - /* This might be used in the future? */
1.13 - #if 0
1.14 SYSTEM_INFO info;
1.15 GetSystemInfo(&info);
1.16
1.17 m_PageSize = info.dwPageSize;
1.18 - #endif
1.19
1.20 #elif defined PLATFORM_POSIX
1.21
1.22 @@ -39,8 +37,9 @@
1.23
1.24 #endif
1.25 }
1.26 +#endif
1.27
1.28 -void *MemoryUtils::FindPattern(void *libPtr, const char *pattern, size_t len)
1.29 +void *MemoryUtils::FindPattern(const void *libPtr, const char *pattern, size_t len)
1.30 {
1.31 DynLibInfo lib;
1.32 bool found;
1.33 @@ -77,7 +76,7 @@
1.34 return NULL;
1.35 }
1.36
1.37 -bool MemoryUtils::GetLibraryInfo(void *libPtr, DynLibInfo &lib)
1.38 +bool MemoryUtils::GetLibraryInfo(const void *libPtr, DynLibInfo &lib)
1.39 {
1.40 unsigned long baseAddr;
1.41