Changeset 38740 in vbox
- Timestamp:
- Sep 13, 2011 2:38:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r37765 r38740 49 49 50 50 #ifdef DEBUG 51 # define Assert(_expr) assert(_expr)51 # define NonStandardAssert(_expr) assert(_expr) 52 52 #else 53 # define Assert(_expr) do{ }while(0)53 # define NonStandardAssert(_expr) do{ }while(0) 54 54 #endif 55 55 … … 505 505 static VOID netCfgLoggerEnable(MSIHANDLE hModule) 506 506 { 507 Assert(hModule);507 NonStandardAssert(hModule); 508 508 509 509 if (g_hCurrentModule) … … 614 614 615 615 UINT rTmp = MsiRecordSetStringW(hMsg, 2, lpszLockedBy); 616 Assert(rTmp == ERROR_SUCCESS);616 NonStandardAssert(rTmp == ERROR_SUCCESS); 617 617 if (rTmp != ERROR_SUCCESS) 618 618 { … … 623 623 624 624 MsgResult = MsiProcessMessage(hModule, (INSTALLMESSAGE)(INSTALLMESSAGE_USER | MB_RETRYCANCEL), hMsg); 625 Assert(MsgResult == IDRETRY || MsgResult == IDCANCEL);625 NonStandardAssert(MsgResult == IDRETRY || MsgResult == IDCANCEL); 626 626 LogStringW(hModule, TEXT("doNetCfgInit: MsiProcessMessage returned (0x%x)"), MsgResult); 627 627 } … … 800 800 KEY_READ /*IN REGSAM samDesired*/ 801 801 ); 802 Assert(hKey != INVALID_HANDLE_VALUE);802 NonStandardAssert(hKey != INVALID_HANDLE_VALUE); 803 803 if (hKey != INVALID_HANDLE_VALUE) 804 804 { … … 812 812 &cbGuid /*guid__inout_opt LPDWORD lpcbData*/ 813 813 ); 814 Assert(winEr == ERROR_SUCCESS);814 NonStandardAssert(winEr == ERROR_SUCCESS); 815 815 if (winEr == ERROR_SUCCESS) 816 816 { … … 819 819 820 820 HRESULT hr = VBoxNetCfgWinGenHostonlyConnectionName (DevName, ConnectoinName, &cbName); 821 Assert(hr == S_OK);821 NonStandardAssert(hr == S_OK); 822 822 if (SUCCEEDED(hr)) 823 823 { 824 824 hr = VBoxNetCfgWinRenameConnection (guid, ConnectoinName); 825 Assert(hr == S_OK);825 NonStandardAssert(hr == S_OK); 826 826 } 827 827 } … … 831 831 else 832 832 { 833 Assert(0);833 NonStandardAssert(0); 834 834 } 835 835
Note:
See TracChangeset
for help on using the changeset viewer.