VirtualBox

Changeset 83843 in vbox


Ignore:
Timestamp:
Apr 20, 2020 9:31:57 AM (5 years ago)
Author:
vboxsync
Message:

Additions/NT/Installer: VC++ 14.1 warnings. bugref:8489

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  
    306306#ifdef UNICODE
    307307        char *pszFileUtf8;
    308         int rc = RTUtf16ToUtf8(szFile, &pszFileUtf8);
     308        rc = RTUtf16ToUtf8(szFile, &pszFileUtf8);
    309309        if (RT_SUCCESS(rc))
    310310        {
  • trunk/src/VBox/Additions/WINNT/Installer/Loader/VBoxWindowsAdditions.cpp

    r82968 r83843  
    7171            && dwRc != WAIT_OBJECT_0 + 1)
    7272        {
    73             fwprintf(stderr, L"ERROR: MsgWaitForMultipleObjects failed: %u (%u)\n", dwRc, GetLastError());
     73            fwprintf(stderr, L"ERROR: MsgWaitForMultipleObjects failed: %lu (%lu)\n", dwRc, GetLastError());
    7474            break;
    7575        }
     
    8484    else
    8585    {
    86         fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: %u\n", GetLastError());
     86        fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: %lu\n", GetLastError());
    8787        *piExitCode = 16;
    8888    }
     
    102102        else
    103103        {
    104             fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: %u\n", GetLastError());
     104            fwprintf(stderr, L"ERROR: GetExitCodeProcess failed: %lu\n", GetLastError());
    105105            *piExitCode = 16;
    106106        }
     
    108108    else
    109109    {
    110         fwprintf(stderr, L"ERROR: WaitForSingleObjectEx failed: %u (%u)\n", WaitRc, GetLastError());
     110        fwprintf(stderr, L"ERROR: WaitForSingleObjectEx failed: %lu (%lu)\n", WaitRc, GetLastError());
    111111        *piExitCode = 16;
    112112    }
     
    126126    if (cchCurDir == 0 || cchCurDir >= sizeof(wszCurDir))
    127127    {
    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);
    129129        return 12;
    130130    }
     
    135135    if (cchModule == 0 || cchModule >= sizeof(wszModule))
    136136    {
    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);
    138138        return 13;
    139139    }
     
    160160    if (cchSuff + cchModule >= sizeof(wszModule))
    161161    {
    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));
    163163        return 14;
    164164    }
     
    283283        else
    284284        {
    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());
    286286            iRet = 9;
    287287        }
     
    289289    else
    290290    {
    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());
    292292        iRet = 8;
    293293    }
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