VirtualBox

Ignore:
Timestamp:
May 17, 2023 1:48:57 PM (21 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/Additions/WINNT/Graphics/Video/mp/xpdm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPDriver.cpp

    r98103 r99828  
    108108
    109109    /* Write hw information to registry, so that it's visible in windows property dialog */
    110     rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.ChipType",
     110    rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.ChipType",
    111111                                        g_wszVBoxChipType, sizeof(g_wszVBoxChipType));
    112112    VBOXMP_WARN_VPS(rc);
    113     rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.DacType",
     113    rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.DacType",
    114114                                        g_wszVBoxDACType, sizeof(g_wszVBoxDACType));
    115115    VBOXMP_WARN_VPS(rc);
    116     rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.MemorySize",
     116    rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.MemorySize",
    117117                                        &cbVRAM, sizeof(ULONG));
    118118    VBOXMP_WARN_VPS(rc);
    119     rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.AdapterString",
     119    rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.AdapterString",
    120120                                        g_wszVBoxAdapterString, sizeof(g_wszVBoxAdapterString));
    121121    VBOXMP_WARN_VPS(rc);
    122     rc = VideoPortSetRegistryParameters(pExt, L"HardwareInformation.BiosString",
     122    rc = VideoPortSetRegistryParameters(pExt, (PWSTR)L"HardwareInformation.BiosString",
    123123                                        g_wszVBoxBiosString, sizeof(g_wszVBoxBiosString));
    124124    VBOXMP_WARN_VPS(rc);
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPRegistry.cpp

    r98103 r99828  
    5858}
    5959
    60 VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, PWSTR pName, uint32_t Val)
     60VP_STATUS VBoxMPCmnRegSetDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t Val)
    6161{
    62     return VideoPortSetRegistryParameters(Reg, pName, &Val, sizeof(Val));
     62    return VideoPortSetRegistryParameters(Reg, (PWSTR)pName, &Val, sizeof(Val));
    6363}
    6464
    65 VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, PWSTR pName, uint32_t *pVal)
     65VP_STATUS VBoxMPCmnRegQueryDword(IN VBOXMPCMNREGISTRY Reg, PCWSTR pName, uint32_t *pVal)
    6666{
    67     VP_STATUS rc;
    68 
    69     rc = VideoPortGetRegistryParameters(Reg, pName, FALSE, VBoxMPQueryNamedValueCB, pVal);
    70     if (rc!=NO_ERROR && pVal)
    71     {
     67    VP_STATUS rc = VideoPortGetRegistryParameters(Reg, (PWSTR)pName, FALSE, VBoxMPQueryNamedValueCB, pVal);
     68    if (rc != NO_ERROR && pVal)
    7269        *pVal = 0;
    73     }
    7470    return rc;
    7571}
Note: See TracChangeset for help on using the changeset viewer.

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