]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Fix passing an empty IMedium* array to IMachine::Delete
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 22 Apr 2012 08:31:33 +0000 (10:31 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Mon, 23 Apr 2012 19:44:51 +0000 (21:44 +0200)
commita9bc123ea3b613e456bc297761861f93196fc416
tree1084bb0ba7a28acda7083b61727a4f9c7695787b
parent52ee7c2ba3e97ac3ebe1a05e50e5c760c04e92cd
vbox: Fix passing an empty IMedium* array to IMachine::Delete

vboxArray is not castable to a COM item type. vboxArray is a
wrapper around the XPCOM and MSCOM specific array handling.

In this case we can avoid passing NULL as an empty array to
IMachine::Delete by passing a dummy IMedium* array with a single
NULL item.
src/vbox/vbox_tmpl.c