mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 1a7c75165427 (landed way more than whitespace changes, woops)
This commit is contained in:
parent
3d8d6bc5e6
commit
afc8545f90
@ -2210,20 +2210,20 @@ pages_map(void *addr, size_t size, int pfd)
|
||||
static void
|
||||
pages_unmap(void *addr, size_t size)
|
||||
{
|
||||
if (VirtualFree(addr, 0, MEM_RELEASE) == 0) {
|
||||
if (VirtualFree(addr, 0, MEM_RELEASE) == 0) {
|
||||
#if defined(MOZ_MEMORY_WINCE) && !defined(MOZ_MEMORY_WINCE6)
|
||||
if (GetLastError() == ERROR_INVALID_PARAMETER) {
|
||||
if (GetLastError() == ERROR_INVALID_PARAMETER) {
|
||||
MEMORY_BASIC_INFORMATION info;
|
||||
VirtualQuery(addr, &info, sizeof(info));
|
||||
VirtualQuery(addr, &info, sizeof(info));
|
||||
if (VirtualFree(info.AllocationBase, 0, MEM_RELEASE))
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
_malloc_message(_getprogname(),
|
||||
": (malloc) Error in VirtualFree()\n", "", "");
|
||||
if (opt_abort)
|
||||
abort();
|
||||
}
|
||||
_malloc_message(_getprogname(),
|
||||
": (malloc) Error in VirtualFree()\n", "", "");
|
||||
if (opt_abort)
|
||||
abort();
|
||||
}
|
||||
}
|
||||
#elif (defined(MOZ_MEMORY_DARWIN))
|
||||
static void *
|
||||
|
Loading…
Reference in New Issue
Block a user