mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
vbox: avoid provoking assertions in VBoxSVC
Passing a NULL pointer to IMachine::delete virtualbox API causes VBoxSVC to raise an assertion. This patch passes an empty array instead.
This commit is contained in:
parent
d2aec1138f
commit
3dab791fc7
@ -5294,7 +5294,8 @@ vboxDomainUndefineFlags(virDomainPtr dom, unsigned int flags)
|
|||||||
|
|
||||||
((IMachine_Delete)machine->vtbl->Delete)(machine, &safeArray, &progress);
|
((IMachine_Delete)machine->vtbl->Delete)(machine, &safeArray, &progress);
|
||||||
# else
|
# else
|
||||||
machine->vtbl->Delete(machine, 0, NULL, &progress);
|
vboxArray array = VBOX_ARRAY_INITIALIZER;
|
||||||
|
machine->vtbl->Delete(machine, 0, (IMedium**)&array, &progress);
|
||||||
# endif
|
# endif
|
||||||
if (progress != NULL) {
|
if (progress != NULL) {
|
||||||
progress->vtbl->WaitForCompletion(progress, -1);
|
progress->vtbl->WaitForCompletion(progress, -1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user