]> git.proxmox.com Git - qemu.git/blobdiff - qemu-thread-win32.c
vvfat: unify and correct computation of sector count
[qemu.git] / qemu-thread-win32.c
index 2d2d5abe39fa134cdc3cce83c3019822c9351cd4..db8e744729b8e078888a1ded7a5bb45cdf0a0f97 100644 (file)
@@ -24,7 +24,7 @@ static void error_exit(int err, const char *msg)
                   NULL, err, 0, (LPTSTR)&pstr, 2, NULL);
     fprintf(stderr, "qemu: %s: %s\n", msg, pstr);
     LocalFree(pstr);
-    exit(1);
+    abort();
 }
 
 void qemu_mutex_init(QemuMutex *mutex)
@@ -249,7 +249,7 @@ void qemu_thread_create(QemuThread *thread,
 
     struct QemuThreadData *data;
     qemu_thread_init();
-    data = qemu_malloc(sizeof *data);
+    data = g_malloc(sizeof *data);
     data->thread = thread;
     data->start_routine = start_routine;
     data->arg = arg;