Changeset 99828 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win
- Timestamp:
- May 17, 2023 1:48:57 PM (23 months ago)
- svn:sync-xref-src-repo-rev:
- 157464
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/win/mon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp
r98103 r99828 1688 1688 RTL_QUERY_REGISTRY_TABLE aParams[] = 1689 1689 { 1690 {vboxUsbFltRegKeyQuery, 0, L"ForceReplugWhenDevPopulateFails", &g_VBoxUsbFltGlobals.dwForceReplugWhenDevPopulateFails, REG_DWORD, &g_VBoxUsbFltGlobals.dwForceReplugWhenDevPopulateFails, sizeof(ULONG) },1691 { NULL, 0, NULL, NULL, 0,0, 0 }1690 {vboxUsbFltRegKeyQuery, 0, (PWSTR)L"ForceReplugWhenDevPopulateFails", &g_VBoxUsbFltGlobals.dwForceReplugWhenDevPopulateFails, REG_DWORD, &g_VBoxUsbFltGlobals.dwForceReplugWhenDevPopulateFails, sizeof(ULONG) }, 1691 { NULL, 0, NULL, NULL, 0, 0, 0 } 1692 1692 }; 1693 1693 UNICODE_STRING UnicodePath = RTL_CONSTANT_STRING(L"\\VBoxUSB"); -
trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp
r98103 r99828 804 804 * @param uErrId Unique error id representing the location in the driver. 805 805 * @param cbDumpData Number of bytes at pDumpData. 806 * @param pDumpData Pointer to data that will be added to the message (see 'details' tab). 806 * @param pvDumpData Pointer to data that will be added to the message 807 * (see 'details' tab). 807 808 * 808 809 * NB: We only use IoLogMsg.dll as the message file, limiting 809 810 * ErrCode to status codes and messages defined in ntiologc.h 810 811 */ 811 static void vboxUsbMonLogError(NTSTATUS ErrCode, NTSTATUS ReturnedStatus, ULONG uErrId, USHORT cbDumpData, PVOID pDumpData)812 static void vboxUsbMonLogError(NTSTATUS ErrCode, NTSTATUS ReturnedStatus, ULONG uErrId, USHORT cbDumpData, void const *pvDumpData) 812 813 { 813 814 PIO_ERROR_LOG_PACKET pErrEntry; … … 824 825 uint8_t *pDump = (uint8_t *)pErrEntry->DumpData; 825 826 if (cbDumpData) 826 memcpy(pDump, p DumpData, cbDumpData);827 memcpy(pDump, pvDumpData, cbDumpData); 827 828 pErrEntry->MajorFunctionCode = 0; 828 829 pErrEntry->RetryCount = 0;
Note:
See TracChangeset
for help on using the changeset viewer.