VirtualBox

Changeset 99828 in vbox for trunk/src/VBox/Installer/win


Ignore:
Timestamp:
May 17, 2023 1:48:57 PM (22 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/Installer/win/InstallHelper
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxCommon.cpp

    r98103 r99828  
    4646    /** @todo r=bird: why do we need to query the size first and then the data.
    4747     *        The API should be perfectly capable of doing that without our help. */
     48    WCHAR wcDummy   = 0;
    4849    DWORD cwcNeeded = 0;
    49     UINT  uiRet = MsiGetPropertyW(hMsi, pwszName, L"", &cwcNeeded);
     50    UINT  uiRet = MsiGetPropertyW(hMsi, pwszName, &wcDummy, &cwcNeeded);
    5051    if (uiRet == ERROR_MORE_DATA)
    5152    {
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r98103 r99828  
    772772
    773773/** RTPathAppend-like function. */
    774 static UINT AppendToPath(wchar_t *pwszPath, size_t cwcPath, wchar_t *pwszAppend, bool fDoubleTerm = false)
     774static UINT AppendToPath(wchar_t *pwszPath, size_t cwcPath, const wchar_t *pwszAppend, bool fDoubleTerm = false)
    775775{
    776776    size_t cwcCurPath = RTUtf16Len(pwszPath);
     
    792792
    793793/** RTPathJoin-like function. */
    794 static UINT JoinPaths(wchar_t *pwszPath, size_t cwcPath, wchar_t *pwszPath1, wchar_t *pwszAppend, bool fDoubleTerm = false)
     794static UINT JoinPaths(wchar_t *pwszPath, size_t cwcPath, wchar_t *pwszPath1, const wchar_t *pwszAppend, bool fDoubleTerm = false)
    795795{
    796796    size_t cwcCurPath = RTUtf16Len(pwszPath1);
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