儲存庫 vbox 的更動 62709
- 時間撮記:
- 2016-7-29 下午08:41:17 (8 年 以前)
- 位置:
- trunk/src/VBox/HostDrivers
- 檔案:
-
- 修改 7 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp
r62684 r62709 91 91 break; 92 92 default: 93 Assert (0);93 AssertFailed(); 94 94 break; 95 95 } -
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 } -
trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbPnP.cpp
r62490 r62709 179 179 if (pDevCaps->Version < 1 || pDevCaps->Size < sizeof (*pDevCaps)) 180 180 { 181 Assert (0);181 AssertFailed(); 182 182 /* todo: return more appropriate status ?? */ 183 183 return STATUS_UNSUCCESSFUL; -
trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbPwr.cpp
r62490 r62709 3 3 * USB Power state Handling 4 4 */ 5 5 6 /* 6 7 * Copyright (C) 2011-2016 Oracle Corporation … … 42 43 static NTSTATUS vboxUsbPwrMnPowerSequence(IN PVBOXUSBDEV_EXT pDevExt, IN PIRP pIrp) 43 44 { 44 Assert (0);45 AssertFailed(); 45 46 return vboxUsbPwrMnDefault(pDevExt, pIrp); 46 47 } … … 87 88 88 89 Status = PoRequestPowerIrp(pDevExt->pPDO, pSl->MinorFunction, PwrState, 89 vboxUsbPwrIoDeviceCompletion, pDevCtx, NULL);90 vboxUsbPwrIoDeviceCompletion, pDevCtx, NULL); 90 91 Assert(NT_SUCCESS(Status)); 91 92 if (NT_SUCCESS(Status)) 92 {93 93 return STATUS_MORE_PROCESSING_REQUIRED; 94 }95 94 96 95 vboxUsbMemFree(pDevCtx); … … 118 117 { 119 118 case IRP_MN_SET_POWER: 120 {121 119 pDevExt->DdiState.PwrState.PowerState.SystemState = pSl->Parameters.Power.State.SystemState; 122 120 break; 123 } 121 124 122 default: 125 {126 123 break; 127 }128 124 } 129 125 … … 288 284 default: 289 285 { 290 Assert (0);286 AssertFailed(); 291 287 return vboxUsbPwrMnDefault(pDevExt, pIrp); 292 288 } … … 356 352 default: 357 353 { 358 Assert (0);354 AssertFailed(); 359 355 return vboxUsbPwrMnDefault(pDevExt, pIrp); 360 356 } … … 395 391 default: 396 392 { 397 // Assert (0);393 // AssertFailed(); 398 394 return vboxUsbPwrMnDefault(pDevExt, pIrp); 399 395 } … … 435 431 } 436 432 } 433
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器