Changeset 62709 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Jul 29, 2016 8:41:17 PM (8 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltM-win.cpp
r62490 r62709 486 486 { 487 487 NDIS_HANDLE h = pNetFlt->u.s.WinIf.hMiniport; 488 Assert (0);488 AssertFailed(); 489 489 if (h) 490 490 { … … 651 651 { 652 652 /* invalid state transformation */ 653 Assert (0);653 AssertFailed(); 654 654 return NDIS_STATUS_FAILURE; 655 655 } … … 1230 1230 case _t: return #_t; 1231 1231 #define VBOXNETFLTDUMP_STRCASE_UNKNOWN() \ 1232 default: /*Assert (0);*/ return "Unknown";1232 default: /*AssertFailed();*/ return "Unknown"; 1233 1233 1234 1234 static const char* vboxNetFltWinMpDumpOid(ULONG oid) … … 1382 1382 LogFlowFunc(("ENTER: pNetFlt (0x%p)\n", hContext)); 1383 1383 /* should never be here */ 1384 Assert (0);1384 AssertFailed(); 1385 1385 LogFlowFunc(("LEAVE: pNetFlt (0x%p), Status (0x%x)\n", hContext, NDIS_STATUS_FAILURE)); 1386 1386 return NDIS_STATUS_FAILURE; -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltP-win.cpp
r62708 r62709 325 325 else 326 326 { 327 Assert (0);327 AssertFailed(); 328 328 *pNetFlt->u.s.WinIf.pcPDRBytesNeeded = sizeof(NDIS_PNP_CAPABILITIES); 329 329 Status = NDIS_STATUS_RESOURCES; … … 352 352 else 353 353 { 354 Assert (0);354 AssertFailed(); 355 355 *pNetFlt->u.s.WinIf.pcPDRBytesNeeded = sizeof (ULONG); 356 356 Status = NDIS_STATUS_RESOURCES; … … 385 385 else 386 386 { 387 Assert (0);387 AssertFailed(); 388 388 *pNetFlt->u.s.WinIf.pcPDRBytesNeeded = sizeof (ULONG); 389 389 Status = NDIS_STATUS_RESOURCES; … … 431 431 else 432 432 { 433 Assert (0);433 AssertFailed(); 434 434 *pNetFlt->u.s.WinIf.pcPDRBytesNeeded = sizeof (ULONG); 435 435 Status = NDIS_STATUS_RESOURCES; … … 452 452 else 453 453 { 454 Assert (0);454 AssertFailed(); 455 455 *pNetFlt->u.s.WinIf.pcPDRBytesNeeded = sizeof (ULONG); 456 456 Status = NDIS_STATUS_RESOURCES; … … 466 466 else 467 467 { 468 Assert (0);468 AssertFailed(); 469 469 } 470 470 #endif … … 521 521 522 522 default: 523 Assert (0);523 AssertFailed(); 524 524 break; 525 525 } … … 674 674 { 675 675 /* should not be here */ 676 Assert (0);676 AssertFailed(); 677 677 } 678 678 #else … … 682 682 #ifndef DEBUG_NETFLT_RECV_TRANSFERDATA 683 683 /* should not be here */ 684 Assert (0);684 AssertFailed(); 685 685 #endif 686 686 if (!vboxNetFltWinLbIsFromIntNet(pLb)) … … 725 725 break; 726 726 } 727 Assert (0);727 AssertFailed(); 728 728 # endif 729 729 } … … 731 731 else 732 732 { 733 Assert (0);733 AssertFailed(); 734 734 } 735 735 /* we are here because of error either in data transfer or in enqueueing the packet */ … … 837 837 break; 838 838 default: 839 Assert (FALSE);839 AssertFailed(); 840 840 break; 841 841 } … … 876 876 if (Status != NDIS_STATUS_SUCCESS) 877 877 { 878 Assert (0);878 AssertFailed(); 879 879 break; 880 880 } … … 894 894 #ifndef DEBUG_NETFLT_RECV_NOPACKET 895 895 /* should not be here */ 896 Assert (0);896 AssertFailed(); 897 897 #endif 898 898 if (!vboxNetFltWinLbIsFromIntNet(pLb)) … … 964 964 if (Status != NDIS_STATUS_SUCCESS) 965 965 { 966 Assert (0);966 AssertFailed(); 967 967 vboxNetFltWinMemFree(pSG); 968 968 break; … … 984 984 if (Status != NDIS_STATUS_SUCCESS) 985 985 { 986 Assert (0);986 AssertFailed(); 987 987 break; 988 988 } … … 1000 1000 if (Status != NDIS_STATUS_SUCCESS) 1001 1001 { 1002 Assert (0);1002 AssertFailed(); 1003 1003 NdisFreePacket(pPacket); 1004 1004 break; … … 1007 1007 if (Status != NDIS_STATUS_SUCCESS) 1008 1008 { 1009 Assert (0);1009 AssertFailed(); 1010 1010 Status = NDIS_STATUS_FAILURE; 1011 1011 NdisFreePacket(pPacket); … … 1017 1017 if (Status != NDIS_STATUS_SUCCESS) 1018 1018 { 1019 Assert (0);1019 AssertFailed(); 1020 1020 Status = NDIS_STATUS_FAILURE; 1021 1021 NdisFreeBuffer(pTransferBuffer); … … 1089 1089 if (vboxNetFltWinIsLoopedBackPacket(pPacket)) 1090 1090 { 1091 Assert (0);1091 AssertFailed(); 1092 1092 /* nothing else to do here, just return the packet */ 1093 1093 //NdisReturnPackets(&pPacket, 1); … … 1180 1180 /* this is a loopback packet, nothing to do here */ 1181 1181 #else 1182 Assert (0);1182 AssertFailed(); 1183 1183 /* should not be here */ 1184 1184 #endif … … 1248 1248 break; 1249 1249 default: 1250 Assert (0);1250 AssertFailed(); 1251 1251 break; 1252 1252 } … … 1284 1284 if (vboxNetFltWinIsLoopedBackPacket(pPacket)) 1285 1285 { 1286 Assert (0);1286 AssertFailed(); 1287 1287 Log(("lb_rp")); 1288 1288 … … 1341 1341 else 1342 1342 { 1343 Assert (0);1343 AssertFailed(); 1344 1344 } 1345 1345 #endif … … 1398 1398 { 1399 1399 RTSpinlockRelease(pNetFlt->hSpinlock); 1400 Assert (0);1400 AssertFailed(); 1401 1401 return false; 1402 1402 } … … 1404 1404 { 1405 1405 RTSpinlockRelease(pNetFlt->hSpinlock); 1406 Assert (0);1406 AssertFailed(); 1407 1407 return false; 1408 1408 } -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltRt-win.cpp
r62490 r62709 2958 2958 break; 2959 2959 default: 2960 Assert (0);2960 AssertFailed(); 2961 2961 break; 2962 2962 } … … 3031 3031 { 3032 3032 /* should never happen actually */ 3033 Assert (0);3033 AssertFailed(); 3034 3034 Status = NDIS_STATUS_FAILURE; 3035 3035 } … … 3059 3059 { 3060 3060 /* should never happen actually */ 3061 Assert (0);3061 AssertFailed(); 3062 3062 Status = NDIS_STATUS_FAILURE; 3063 3063 } -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp
r62697 r62709 920 920 break; 921 921 default: 922 Assert (0);922 AssertFailed(); 923 923 break; 924 924 }
Note:
See TracChangeset
for help on using the changeset viewer.