aboutsummaryrefslogtreecommitdiffstats
path: root/target-i386/hax-windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386/hax-windows.c')
-rw-r--r--target-i386/hax-windows.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-i386/hax-windows.c b/target-i386/hax-windows.c
index 346e5c0..0035d21 100644
--- a/target-i386/hax-windows.c
+++ b/target-i386/hax-windows.c
@@ -228,9 +228,10 @@ static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id)
return name;
}
-int hax_host_create_vm(struct hax_state *hax, int vm_id)
+int hax_host_create_vm(struct hax_state *hax, int *vmid)
{
int ret;
+ int vm_id = 0;
DWORD dSize = 0;
if (hax_invalid_fd(hax->fd))
@@ -249,7 +250,7 @@ int hax_host_create_vm(struct hax_state *hax, int vm_id)
dprint("error code:%d", GetLastError());
return -1;
}
-
+ *vmid = vm_id;
return 0;
}