]> git.proxmox.com Git - qemu.git/blobdiff - util/oslib-win32.c
exec: Don't abort when we can't allocate guest memory
[qemu.git] / util / oslib-win32.c
index 961fbf5e3de5d35d77c97814adf6f97762bd357c..983b7a2375808608c6dc16a604b33fffafa2c942 100644 (file)
@@ -65,10 +65,7 @@ void *qemu_anon_ram_alloc(size_t size)
     /* FIXME: this is not exactly optimal solution since VirtualAlloc
        has 64Kb granularity, but at least it guarantees us that the
        memory is page aligned. */
-    if (!size) {
-        abort();
-    }
-    ptr = qemu_oom_check(VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_READWRITE));
+    ptr = VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_READWRITE);
     trace_qemu_anon_ram_alloc(size, ptr);
     return ptr;
 }