mirror of
https://github.com/dobin/SuperMega
synced 2026-06-03 01:27:11 +00:00
fix: more allocations
This commit is contained in:
@@ -17,6 +17,8 @@ void antiemulation() {
|
|||||||
void* allocs[ALLOC_NUM];
|
void* allocs[ALLOC_NUM];
|
||||||
DWORD result;
|
DWORD result;
|
||||||
|
|
||||||
|
for(int i=0; i<4; i++) {
|
||||||
|
|
||||||
for(int n=0; n<ALLOC_NUM; n++) {
|
for(int n=0; n<ALLOC_NUM; n++) {
|
||||||
allocs[n] = VirtualAlloc(
|
allocs[n] = VirtualAlloc(
|
||||||
NULL,
|
NULL,
|
||||||
@@ -37,6 +39,8 @@ void antiemulation() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Sleep(200);
|
||||||
|
|
||||||
BOOL bSuccess;
|
BOOL bSuccess;
|
||||||
for(int n=0; n<ALLOC_NUM; n++) {
|
for(int n=0; n<ALLOC_NUM; n++) {
|
||||||
bSuccess = VirtualFree(
|
bSuccess = VirtualFree(
|
||||||
@@ -45,3 +49,6 @@ void antiemulation() {
|
|||||||
0x00008000); // MEM_RELEASE
|
0x00008000); // MEM_RELEASE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user