Changeset 84054 in vbox for trunk/src/VBox/Additions/WINNT/Installer/InstallHelper
- Timestamp:
- Apr 28, 2020 4:05:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
r83843 r84054 144 144 if (RT_FAILURE(rc)) 145 145 { 146 147 #ifdef UNICODE 148 TCHAR *pszErrAsString; 149 int rc2 = RTStrToUtf16(RTErrGetDefine(rc), &pszErrAsString); 146 char szMsg[80]; 147 RTErrQueryDefine(rc, szMsg, sizeof(szMsg), false /*fFailIfUnknown*/); 148 /** @todo r=bird: Just use RTUtf16Printf here as RTErrQueryDefine drags in 149 * the whole IPRT printf machinery anyway. */ 150 #ifdef UNICODE 151 int rc2 = RTStrToUtf16(szMsg, &pszErrAsString); 150 152 if (RT_SUCCESS(rc2)) 151 153 { 152 #else153 TCHAR *pszErrAsString = RTErrGetDefine(rc);154 154 #endif 155 155 StringCchPrintf(szErr, sizeof(szErr), _T("Error: %s"), pszErrAsString);
Note:
See TracChangeset
for help on using the changeset viewer.