VirtualBox

Ignore:
Timestamp:
May 17, 2023 1:48:57 PM (23 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157464
Message:

*: A bunch of adjustments that allows using /permissive- with Visual C++ (qt 6.x necessity).

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  
    16881688    RTL_QUERY_REGISTRY_TABLE aParams[] =
    16891689    {
    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 }
    16921692    };
    16931693    UNICODE_STRING UnicodePath = RTL_CONSTANT_STRING(L"\\VBoxUSB");
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp

    r98103 r99828  
    804804 * @param   uErrId         Unique error id representing the location in the driver.
    805805 * @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).
    807808 *
    808809 * NB: We only use IoLogMsg.dll as the message file, limiting
    809810 * ErrCode to status codes and messages defined in ntiologc.h
    810811 */
    811 static void vboxUsbMonLogError(NTSTATUS ErrCode, NTSTATUS ReturnedStatus, ULONG uErrId, USHORT cbDumpData, PVOID pDumpData)
     812static void vboxUsbMonLogError(NTSTATUS ErrCode, NTSTATUS ReturnedStatus, ULONG uErrId, USHORT cbDumpData, void const *pvDumpData)
    812813{
    813814    PIO_ERROR_LOG_PACKET pErrEntry;
     
    824825        uint8_t *pDump = (uint8_t *)pErrEntry->DumpData;
    825826        if (cbDumpData)
    826             memcpy(pDump, pDumpData, cbDumpData);
     827            memcpy(pDump, pvDumpData, cbDumpData);
    827828        pErrEntry->MajorFunctionCode = 0;
    828829        pErrEntry->RetryCount = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette