VirtualBox

Changeset 82626 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Dec 19, 2019 4:21:19 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135513
Message:

Windows Additions/Installer: More work required for the VBoxGuestInstallHelper plugin to respect ANSI/Unicode with NSIS 3.x (NSIS uses TCHAR), extended the testcase, bugref:9529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp

    r82625 r82626  
    449449    EXDLL_INIT();
    450450
    451     int rc = VINF_SUCCESS;
    452 
    453451    TCHAR szMsg[256];
    454452    TCHAR szTitle[128];
    455     HRESULT hr = vboxPopString(szMsg, sizeof(szMsg) / sizeof(TCHAR));
    456     if (SUCCEEDED(hr))
    457         hr = vboxPopString(szTitle, sizeof(szTitle) / sizeof(TCHAR));
     453    int rc = vboxPopString(szMsg, sizeof(szMsg) / sizeof(TCHAR));
     454    if (RT_SUCCESS(rc))
     455        rc = vboxPopString(szTitle, sizeof(szTitle) / sizeof(TCHAR));
    458456
    459457    /** @todo Do we need to restore the stack on failure? */
    460458
    461     if (SUCCEEDED(hr))
     459    if (RT_SUCCESS(rc))
    462460    {
    463461        RTR3InitDll(0);
     
    515513            else
    516514                rc = VERR_NO_MEMORY;
     515#ifdef UNICODE
     516            RTStrFree(pszMsgUtf8);
     517            RTStrFree(pszTitleUtf8);
     518#endif
    517519        }
    518520    }
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