Changeset 83843 in vbox
- Timestamp:
- Apr 20, 2020 9:31:57 AM (5 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
r82968 r83843 306 306 #ifdef UNICODE 307 307 char *pszFileUtf8; 308 intrc = RTUtf16ToUtf8(szFile, &pszFileUtf8);308 rc = RTUtf16ToUtf8(szFile, &pszFileUtf8); 309 309 if (RT_SUCCESS(rc)) 310 310 { -
trunk/src/VBox/Additions/WINNT/Installer/Loader/VBoxWindowsAdditions.cpp
r82968 r83843 71 71 && dwRc != WAIT_OBJECT_0 + 1) 72 72 { 73 fwprintf(stderr, L"ERROR: MsgWaitForMultipleObjects failed: % u (%u)\n", dwRc, GetLastError());73 fwprintf(stderr, L"ERROR: MsgWaitForMultipleObjects failed: %lu (%lu)\n", dwRc, GetLastError()); 74 74 break; 75 75 } … … 84 84 else 85 85 { 86 fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: % u\n", GetLastError());86 fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: %lu\n", GetLastError()); 87 87 *piExitCode = 16; 88 88 } … … 102 102 else 103 103 { 104 fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: % u\n", GetLastError());104 fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: %lu\n", GetLastError()); 105 105 *piExitCode = 16; 106 106 } … … 108 108 else 109 109 { 110 fwprintf(stderr, L"ERROR: WaitForSingleObjectEx failed: % u (%u)\n", WaitRc, GetLastError());110 fwprintf(stderr, L"ERROR: WaitForSingleObjectEx failed: %lu (%lu)\n", WaitRc, GetLastError()); 111 111 *piExitCode = 16; 112 112 } … … 126 126 if (cchCurDir == 0 || cchCurDir >= sizeof(wszCurDir)) 127 127 { 128 fwprintf(stderr, L"ERROR: GetCurrentDirectoryW failed: % u (ret %u)\n", GetLastError(), cchCurDir);128 fwprintf(stderr, L"ERROR: GetCurrentDirectoryW failed: %lu (ret %lu)\n", GetLastError(), cchCurDir); 129 129 return 12; 130 130 } … … 135 135 if (cchModule == 0 || cchModule >= sizeof(wszModule)) 136 136 { 137 fwprintf(stderr, L"ERROR: GetModuleFileNameW failed: % u (ret %u)\n", GetLastError(), cchModule);137 fwprintf(stderr, L"ERROR: GetModuleFileNameW failed: %lu (ret %lu)\n", GetLastError(), cchModule); 138 138 return 13; 139 139 } … … 160 160 if (cchSuff + cchModule >= sizeof(wszModule)) 161 161 { 162 fwprintf(stderr, L"ERROR: Real installer name is too long (%u chars)\n", cchSuff + cchModule);162 fwprintf(stderr, L"ERROR: Real installer name is too long (%u chars)\n", (unsigned)(cchSuff + cchModule)); 163 163 return 14; 164 164 } … … 283 283 else 284 284 { 285 fwprintf(stderr, L"ERROR: Failed to execute '%ws' via ShellExecuteExW: % u\n", wszModule, GetLastError());285 fwprintf(stderr, L"ERROR: Failed to execute '%ws' via ShellExecuteExW: %lu\n", wszModule, GetLastError()); 286 286 iRet = 9; 287 287 } … … 289 289 else 290 290 { 291 fwprintf(stderr, L"ERROR: Failed to execute '%ws' via CreateProcessW: % u\n", wszModule, GetLastError());291 fwprintf(stderr, L"ERROR: Failed to execute '%ws' via CreateProcessW: %lu\n", wszModule, GetLastError()); 292 292 iRet = 8; 293 293 }
Note:
See TracChangeset
for help on using the changeset viewer.