VirtualBox

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


Ignore:
Timestamp:
Jan 27, 2025 5:15:34 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167197
Message:

Host installer/win: Removed unused pwszName in VBoxMsiQueryPropInt32().

File:
1 edited

Legend:

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

    r107948 r107950  
    130130   AssertPtrReturn(pdwValue, VERR_INVALID_POINTER);
    131131
    132     PRTUTF16 pwszName;
    133     int rc = RTStrToUtf16(pszName, &pwszName);
     132    char *pszTemp;
     133    int rc = VBoxMsiQueryPropUtf8(hMsi, pszName, &pszTemp);
    134134    if (RT_SUCCESS(rc))
    135135    {
    136         char *pszTemp;
    137         rc = VBoxMsiQueryPropUtf8(hMsi, pszName, &pszTemp);
    138         if (RT_SUCCESS(rc))
    139         {
    140             *pdwValue = RTStrToInt32(pszTemp);
    141             RTStrFree(pszTemp);
    142         }
     136        *pdwValue = RTStrToInt32(pszTemp);
     137        RTStrFree(pszTemp);
    143138    }
    144139
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