diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-07 09:25:04 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-07 09:25:04 +0200 |
| commit | f81677278f6bbe387e20f7b9f642f8dcbef12387 (patch) | |
| tree | 36b13e609477329ba3736f27931c408eb1f0f486 /src/custommem.c | |
| parent | 2ef6011c7aebe44870795e1faaae9dde462cb7af (diff) | |
| download | box64-f81677278f6bbe387e20f7b9f642f8dcbef12387.tar.gz box64-f81677278f6bbe387e20f7b9f642f8dcbef12387.zip | |
Reworked mmap allocator and wine prereserve handling ([BOX32] fix handling of wine prereserve)
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/custommem.c b/src/custommem.c index 5e3de17a..4243b2f2 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -1656,7 +1656,9 @@ void* find47bitBlock(size_t size) { void* ret = find47bitBlockNearHint(HIGH, size, 0); if(!ret) - ret = find32bitBlock(size); + ret = find31bitBlockNearHint(MEDIUM, size, 0); + if(!ret) + ret = find31bitBlockNearHint(LOWEST, size, 0); return ret; } void* find47bitBlockNearHint(void* hint, size_t size, uintptr_t mask) |