VirtualBox

Changeset 89261 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 25, 2021 10:23:37 AM (4 years ago)
Author:
vboxsync
Message:

ValKit/AudioTest: Must initialize COM on windows. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89259 r89261  
    4848
    4949#include <VBox/version.h>
     50
     51#ifdef RT_OS_WINDOWS
     52# include <iprt/win/windows.h> /* for CoInitializeEx */
     53#endif
    5054
    5155/**
     
    28492853        return rcExit;
    28502854
     2855#ifdef RT_OS_WINDOWS
     2856    HRESULT hrc = CoInitializeEx(NULL /*pReserved*/, COINIT_MULTITHREADED | COINIT_SPEED_OVER_MEMORY | COINIT_DISABLE_OLE1DDE);
     2857    if (FAILED(hrc))
     2858        RTMsgWarning("CoInitializeEx failed: %#x", hrc);
     2859#endif
     2860
    28512861    /*
    28522862     * Process common options.
Note: See TracChangeset for help on using the changeset viewer.

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