Skip to content

Commit b73c138

Browse files
committed
Enabled 'low frag heap' for XP
1 parent d640d7a commit b73c138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MTA10/core/Core.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ int WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, PVOID pvNothing)
3333

3434
AddUtf8FileHooks();
3535

36+
// Set low frag heap for XP
37+
ULONG heapInfo = 2 ;
38+
HeapSetInformation( GetProcessHeap(), HeapCompatibilityInformation, &heapInfo, sizeof( heapInfo ) );
39+
3640
FileTranslator.GetGTARootDirectory ( WorkingDirectory );
3741
SetCurrentDirectory ( WorkingDirectory.c_str ( ) );
3842

0 commit comments

Comments
 (0)