Skip to content

Instantly share code, notes, and snippets.

@exolyte
exolyte / alwaysLAA.patch
Created February 25, 2018 14:33
wine patch to always use large address aware
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index e68420a55b..5bb721a217 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -1417,10 +1417,7 @@ VOID WINAPI GlobalMemoryStatus( LPMEMORYSTATUS lpBuffer )
/* page file sizes are not limited (Adobe Illustrator 8 depends on this) */
if (!(nt->FileHeader.Characteristics & IMAGE_FILE_LARGE_ADDRESS_AWARE))
{
- if (lpBuffer->dwTotalPhys > MAXLONG) lpBuffer->dwTotalPhys = MAXLONG;
- if (lpBuffer->dwAvailPhys > MAXLONG) lpBuffer->dwAvailPhys = MAXLONG;