儲存庫 vbox 的更動 62719
- 時間撮記:
- 2016-7-29 下午10:12:45 (8 年 以前)
- 位置:
- trunk/src/VBox/HostDrivers
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp
r62709 r62719 78 78 static NTSTATUS vboxNetAdpWinDevDispatch(IN PDEVICE_OBJECT pDevObj, IN PIRP pIrp) 79 79 { 80 PIO_STACK_LOCATION pIrpSl = IoGetCurrentIrpStackLocation(pIrp);; 80 RT_NOREF1(pDevObj); 81 PIO_STACK_LOCATION pIrpSl = IoGetCurrentIrpStackLocation(pIrp); 81 82 NTSTATUS Status = STATUS_SUCCESS; 82 83 … … 84 85 { 85 86 case IRP_MJ_DEVICE_CONTROL: 86 Status = STATUS_NOT_SUPPORTED; // TODO:add/remove ioctls87 Status = STATUS_NOT_SUPPORTED; /// @todo add/remove ioctls 87 88 break; 88 89 case IRP_MJ_CREATE: … … 221 222 DECLINLINE(NDIS_MEDIA_CONNECT_STATE) vboxNetAdpWinGetConnectState(PVBOXNETADP_ADAPTER pAdapter) 222 223 { 224 RT_NOREF1(pAdapter); 223 225 return MediaConnectStateConnected; 224 226 } … … 229 231 IN PNDIS_MINIPORT_INIT_PARAMETERS MiniportInitParameters) 230 232 { 233 RT_NOREF1(MiniportDriverContext); 231 234 PVBOXNETADP_ADAPTER pAdapter = NULL; 232 235 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; … … 328 331 IN NDIS_HALT_ACTION HaltAction) 329 332 { 333 RT_NOREF1(HaltAction); 330 334 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 331 335 LogFlow(("==>vboxNetAdpWinHaltEx\n")); … … 339 343 IN PNDIS_MINIPORT_PAUSE_PARAMETERS MiniportPauseParameters) 340 344 { 345 RT_NOREF2(MiniportAdapterContext, MiniportPauseParameters); 341 346 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 342 347 LogFlow(("==>vboxNetAdpWinPause\n")); … … 348 353 IN PNDIS_MINIPORT_RESTART_PARAMETERS MiniportRestartParameters) 349 354 { 355 RT_NOREF2(MiniportAdapterContext, MiniportRestartParameters); 350 356 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 351 357 LogFlow(("==>vboxNetAdpWinRestart\n")); … … 469 475 PNDIS_OID_REQUEST pRequest) 470 476 { 477 RT_NOREF1(pAdapter); 471 478 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 472 479 struct _NDIS_OID_REQUEST::_REQUEST_DATA::_SET *pSet = &pRequest->DATA.SET_INFORMATION; … … 563 570 IN ULONG SendFlags) 564 571 { 572 RT_NOREF1(PortNumber); 565 573 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext; 566 574 LogFlow(("==>vboxNetAdpWinSendNetBufferLists\n")); … … 578 586 IN ULONG ReturnFlags) 579 587 { 580 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;588 RT_NOREF3(MiniportAdapterContext, NetBufferLists, ReturnFlags); 581 589 LogFlow(("==>vboxNetAdpWinReturnNetBufferLists\n")); 582 590 Log(("vboxNetAdpWinReturnNetBufferLists: We should not be here!\n")); … … 587 595 IN PVOID CancelId) 588 596 { 589 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;597 RT_NOREF2(MiniportAdapterContext, CancelId); 590 598 LogFlow(("==>vboxNetAdpWinCancelSend\n")); 591 599 Log(("vboxNetAdpWinCancelSend: We should not be here!\n")); … … 596 604 DECLHIDDEN(BOOLEAN) vboxNetAdpWinCheckForHangEx(IN NDIS_HANDLE MiniportAdapterContext) 597 605 { 598 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;606 RT_NOREF1(MiniportAdapterContext); 599 607 LogFlow(("==>vboxNetAdpWinCheckForHangEx\n")); 600 608 LogFlow(("<==vboxNetAdpWinCheckForHangEx return false\n")); … … 605 613 OUT PBOOLEAN AddressingReset) 606 614 { 615 RT_NOREF2(MiniportAdapterContext, AddressingReset); 607 616 NDIS_STATUS Status = NDIS_STATUS_SUCCESS; 608 617 LogFlow(("==>vboxNetAdpWinResetEx\n")); … … 614 623 IN PNET_DEVICE_PNP_EVENT NetDevicePnPEvent) 615 624 { 616 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;625 RT_NOREF2(MiniportAdapterContext, NetDevicePnPEvent); 617 626 LogFlow(("==>vboxNetAdpWinDevicePnPEventNotify\n")); 618 627 Log(("vboxNetAdpWinDevicePnPEventNotify: PnP event=%d\n", NetDevicePnPEvent->DevicePnPEvent)); … … 624 633 IN NDIS_SHUTDOWN_ACTION ShutdownAction) 625 634 { 626 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;635 RT_NOREF2(MiniportAdapterContext, ShutdownAction); 627 636 LogFlow(("==>vboxNetAdpWinShutdownEx\n")); 628 637 Log(("vboxNetAdpWinShutdownEx: action=%d\n", ShutdownAction)); … … 633 642 IN PVOID RequestId) 634 643 { 635 PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;644 RT_NOREF2(MiniportAdapterContext, RequestId); 636 645 LogFlow(("==>vboxNetAdpWinCancelOidRequest\n")); 637 646 Log(("vboxNetAdpWinCancelOidRequest: req id=%p\n", RequestId)); … … 643 652 DECLHIDDEN(VOID) vboxNetAdpWinUnload(IN PDRIVER_OBJECT DriverObject) 644 653 { 654 RT_NOREF1(DriverObject); 645 655 LogFlow(("==>vboxNetAdpWinUnload\n")); 646 656 //vboxNetAdpWinDevDestroy(&g_VBoxNetAdpGlobals); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetFltP-win.cpp
r62709 r62719 1490 1490 { 1491 1491 NDIS_DEVICE_POWER_STATE enmPowerState = *((PNDIS_DEVICE_POWER_STATE)pNetPnPEvent->Buffer); 1492 return vboxNetFltWinPtPnPSetPower(pNetFlt, enmPowerState); 1493 } 1492 NDIS_STATUS rcNdis = vboxNetFltWinPtPnPSetPower(pNetFlt, enmPowerState); 1493 LogFlowFunc(("LEAVE: pNetFlt (0x%p), NetEvent (%d), rcNdis=%#x\n", pNetFlt, pNetPnPEvent->NetEvent, rcNdis)); 1494 return rcNdis; 1495 } 1496 1494 1497 case NetEventReconfigure: 1495 1498 { … … 1499 1502 } 1500 1503 } 1504 /** @todo r=bird: Is the fall thru intentional?? */ 1501 1505 default: 1506 LogFlowFunc(("LEAVE: pNetFlt (0x%p), NetEvent (%d)\n", pNetFlt, pNetPnPEvent->NetEvent)); 1502 1507 return NDIS_STATUS_SUCCESS; 1503 1508 } 1504 1509 1505 LogFlowFunc(("LEAVE: pNetFlt (0x%p), NetEvent (%d)\n", pNetFlt, pNetPnPEvent->NetEvent));1506 1510 } 1507 1511 -
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp
r62715 r62719 913 913 switch(pSl->Parameters.QueryDeviceRelations.Type) 914 914 { 915 case BusRelations: 916 { 917 LOG(("BusRelations")); 918 919 if (pIoStatus->Status == STATUS_SUCCESS) 920 { 921 PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information; 922 LOG(("pRel = %p", pRel)); 923 if (VALID_PTR(pRel)) 915 case BusRelations: 916 LOG(("BusRelations")); 917 918 if (pIoStatus->Status == STATUS_SUCCESS) 924 919 { 925 for (unsigned i=0;i<pRel->Count;i++) 920 PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information; 921 LOG(("pRel = %p", pRel)); 922 if (VALID_PTR(pRel)) 926 923 { 927 if (VBoxUsbFltPdoIsFiltered(pDevObj)) 928 LOG(("New PDO %p", pRel->Objects[i])); 924 for (unsigned i=0;i<pRel->Count;i++) 925 { 926 if (VBoxUsbFltPdoIsFiltered(pDevObj)) 927 LOG(("New PDO %p", pRel->Objects[i])); 928 } 929 929 } 930 else 931 LOG(("Invalid pointer %p", pRel)); 930 932 } 931 else 932 LOG(("Invalid pointer %p", pRel)); 933 } 934 break; 935 } 936 case TargetDeviceRelation: 937 LOG(("TargetDeviceRelation")); 938 break; 939 case RemovalRelations: 940 LOG(("RemovalRelations")); 941 break; 942 case EjectionRelations: 943 LOG(("EjectionRelations")); 944 break; 933 break; 934 case TargetDeviceRelation: 935 LOG(("TargetDeviceRelation")); 936 break; 937 case RemovalRelations: 938 LOG(("RemovalRelations")); 939 break; 940 case EjectionRelations: 941 LOG(("EjectionRelations")); 942 break; 943 default: 944 LOG(("QueryDeviceRelations.Type=%d", pSl->Parameters.QueryDeviceRelations.Type)); 945 945 } 946 946 break; … … 1595 1595 } 1596 1596 1597 static NTSTATUS vboxUsbMonIoctlDispatch(PVBOXUSBMONCTX pContext, ULONG Ctl, PVOID pvBuffer, ULONG cbInBuffer, ULONG cbOutBuffer, ULONG_PTR* pInfo) 1597 static NTSTATUS vboxUsbMonIoctlDispatch(PVBOXUSBMONCTX pContext, ULONG Ctl, PVOID pvBuffer, ULONG cbInBuffer, 1598 ULONG cbOutBuffer, ULONG_PTR *pInfo) 1598 1599 { 1599 1600 NTSTATUS Status = STATUS_SUCCESS; … … 1659 1660 { 1660 1661 /* we've validated that already */ 1661 Assert(cbOutBuffer == *pRc);1662 Assert(cbOutBuffer == (ULONG)*pRc); 1662 1663 *pRc = rc; 1663 1664 Info = sizeof (*pRc);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器