VirtualBox

Ignore:
Timestamp:
Nov 15, 2010 3:38:20 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67761
Message:

ExtPack: Fixes to IExtPack (QueryInterface can't be used for getting stuff from the ext pack, designed the plug-in interfaces). Bugfixes making 'VBoxManage list extpack' work when building with VBOX_WITH_EXTPACK_PUEL=1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r33921 r34073  
    347347
    348348/**
     349 * Converts the Guid input argument (string) to a Guid object, returns with
     350 * E_INVALIDARG and error message on failure.
     351 *
     352 * @param a_Arg     Argument.
     353 * @param a_GuidVar The Guid variable name.
     354 */
     355#define CheckComArgGuid(a_Arg, a_GuidVar) \
     356    do { \
     357        Guid tmpGuid(a_Arg); \
     358        (a_GuidVar) = tmpGuid; \
     359        if (RT_UNLIKELY((a_GuidVar).isEmpty())) \
     360            return setError(E_INVALIDARG, \
     361                tr("GUID argument %s is not valid (\"%ls\")"), #a_Arg, Bstr(a_Arg).raw()); \
     362    } while (0)
     363
     364/**
    349365 * Checks that the given expression (that must involve the argument) is true and
    350366 * returns E_INVALIDARG + extended error info on failure.
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