VirtualBox

Changeset 38791 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Sep 19, 2011 1:21:31 PM (13 years ago)
Author:
vboxsync
Message:

VBoxInstallHelper.cpp,++: Clean up TCHAR/WCHAR mess - just use WCHAR, forget TCHAR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp

    r38732 r38791  
    274274}
    275275
     276/** @todo r=bird: This function is not in the header file, why is it
     277 *        exported? */
    276278VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinInstallInfAndComponent(IN INetCfg *pNetCfg, IN LPCWSTR pszwComponentId, IN const GUID *pguidClass,
    277                                                                 IN LPCWSTR * apInfPaths, IN UINT cInfPaths,
     279                                                                IN LPCWSTR const *apInfPaths, IN UINT cInfPaths,
    278280                                                                OUT INetCfgComponent **ppComponent)
    279281{
     
    18581860
    18591861VBOXNETCFGWIN_DECL(HRESULT) VBoxNetCfgWinNetFltInstall(IN INetCfg *pNc,
    1860                                                        IN LPCWSTR * apInfFullPaths, IN UINT cInfFullPaths)
     1862                                                       IN LPCWSTR const *apInfFullPaths, IN UINT cInfFullPaths)
    18611863{
    18621864    HRESULT hr = vboxNetCfgWinNetFltUninstall(pNc, SUOI_FORCEDELETE);
     
    20562058
    20572059    /* Build the display name in the form "::{GUID}". */
    2058     if (wcslen (wGuid) >= MAX_PATH)
     2060    if (wcslen(wGuid) >= MAX_PATH)
    20592061        return E_INVALIDARG;
    20602062    WCHAR szAdapterGuid[MAX_PATH + 2] = {0};
    2061     swprintf (szAdapterGuid, L"::%ls", wGuid);
     2063    swprintf(szAdapterGuid, L"::%ls", wGuid);
    20622064
    20632065    /* Create an instance of the network connections folder. */
    2064     hr = CoCreateInstance (CLSID_NetworkConnections, NULL,
    2065                            CLSCTX_INPROC_SERVER, IID_IShellFolder,
    2066                            reinterpret_cast <LPVOID *> (&pShellFolder));
     2066    hr = CoCreateInstance(CLSID_NetworkConnections, NULL,
     2067                          CLSCTX_INPROC_SERVER, IID_IShellFolder,
     2068                          reinterpret_cast<LPVOID *>(&pShellFolder));
    20672069    /* Parse the display name. */
    20682070    if (SUCCEEDED (hr))
     
    27092711        if (lppszName)
    27102712        {
    2711             *lppszName = ::SysAllocString((const OLECHAR *) DevName);
     2713            *lppszName = SysAllocString((const OLECHAR *) DevName);
    27122714            if (!*lppszName)
    27132715            {
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