VirtualBox

Ignore:
Timestamp:
Mar 2, 2009 10:58:10 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43560
Message:

3551: “Main: Replace remaining collections with safe arrays”
Converted HostDVDDriveCollection.
Fixed a locking problem that caused hangs in r43495. Tested locally and by lelik.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DVDDriveImpl.cpp

    r17218 r17238  
    77
    88/*
    9  * Copyright (C) 2006-2008 Sun Microsystems, Inc.
     9 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    452452        Bstr src = typeNode.stringValue ("src");
    453453
    454         /* find the correspoding object */
     454        /* find the corresponding object */
    455455        ComObjPtr <Host> host = mParent->virtualBox()->host();
    456456
    457         ComPtr <IHostDVDDriveCollection> coll;
    458         rc = host->COMGETTER(DVDDrives) (coll.asOutParam());
     457        com::SafeIfaceArray <IHostDVDDrive> coll;
     458        rc = host->COMGETTER(DVDDrives) (ComSafeArrayAsOutParam(coll));
    459459        AssertComRC (rc);
    460460
    461461        ComPtr <IHostDVDDrive> drive;
    462         rc = coll->FindByName (src, drive.asOutParam());
     462        rc = host->FindHostDVDDrive (src, drive.asOutParam());
     463
    463464        if (SUCCEEDED (rc))
    464465        {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette