VirtualBox

Changeset 38740 in vbox


Ignore:
Timestamp:
Sep 13, 2011 2:38:35 PM (13 years ago)
Author:
vboxsync
Message:

Another Assert redefinition bites the dust.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r37765 r38740  
    4949
    5050#ifdef DEBUG
    51 # define Assert(_expr) assert(_expr)
     51# define NonStandardAssert(_expr) assert(_expr)
    5252#else
    53 # define Assert(_expr) do{ }while(0)
     53# define NonStandardAssert(_expr) do{ }while(0)
    5454#endif
    5555
     
    505505static VOID netCfgLoggerEnable(MSIHANDLE hModule)
    506506{
    507     Assert(hModule);
     507    NonStandardAssert(hModule);
    508508
    509509    if (g_hCurrentModule)
     
    614614
    615615            UINT rTmp = MsiRecordSetStringW(hMsg, 2, lpszLockedBy);
    616             Assert(rTmp == ERROR_SUCCESS);
     616            NonStandardAssert(rTmp == ERROR_SUCCESS);
    617617            if (rTmp != ERROR_SUCCESS)
    618618            {
     
    623623
    624624            MsgResult = MsiProcessMessage(hModule, (INSTALLMESSAGE)(INSTALLMESSAGE_USER | MB_RETRYCANCEL), hMsg);
    625             Assert(MsgResult == IDRETRY || MsgResult == IDCANCEL);
     625            NonStandardAssert(MsgResult == IDRETRY || MsgResult == IDCANCEL);
    626626            LogStringW(hModule, TEXT("doNetCfgInit: MsiProcessMessage returned (0x%x)"), MsgResult);
    627627        }
     
    800800                KEY_READ /*IN REGSAM  samDesired*/
    801801                );
    802         Assert(hKey != INVALID_HANDLE_VALUE);
     802        NonStandardAssert(hKey != INVALID_HANDLE_VALUE);
    803803        if (hKey != INVALID_HANDLE_VALUE)
    804804        {
     
    812812              &cbGuid /*guid__inout_opt  LPDWORD lpcbData*/
    813813            );
    814             Assert(winEr == ERROR_SUCCESS);
     814            NonStandardAssert(winEr == ERROR_SUCCESS);
    815815            if (winEr == ERROR_SUCCESS)
    816816            {
     
    819819
    820820                HRESULT hr = VBoxNetCfgWinGenHostonlyConnectionName (DevName, ConnectoinName, &cbName);
    821                 Assert(hr == S_OK);
     821                NonStandardAssert(hr == S_OK);
    822822                if (SUCCEEDED(hr))
    823823                {
    824824                    hr = VBoxNetCfgWinRenameConnection (guid, ConnectoinName);
    825                     Assert(hr == S_OK);
     825                    NonStandardAssert(hr == S_OK);
    826826                }
    827827            }
     
    831831    else
    832832    {
    833         Assert(0);
     833        NonStandardAssert(0);
    834834    }
    835835
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