VirtualBox

Changeset 83844 in vbox


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

VBoxGuest/win/VBoxGuestInst: VC++ 14.1 warnings. bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestInst.cpp

    r82968 r83844  
    5151    if (!hSMgrCreate)
    5252    {
    53         printf("OpenSCManager(,,create) failed rc=%d\n", GetLastError());
     53        printf("OpenSCManager(,,create) failed rc=%lu\n", GetLastError());
    5454        return -1;
    5555    }
     
    9797                printf("successfully started driver '%s'\n", szDriver);
    9898            else
    99                 printf("StartService failed: %d\n", GetLastError());
     99                printf("StartService failed: %lu\n", GetLastError());
    100100        }
    101101        CloseServiceHandle(hService);
    102102    }
    103103    else
    104         printf("CreateService failed! lasterr=%d (szDriver=%s)\n", GetLastError(), szDriver);
     104        printf("CreateService failed! lasterr=%lu (szDriver=%s)\n", GetLastError(), szDriver);
    105105    CloseServiceHandle(hSMgrCreate);
    106106    return hService ? 0 : -1;
     
    113113    if (!hSMgr)
    114114    {
    115         printf("OpenSCManager(,,delete) failed rc=%d\n", GetLastError());
     115        printf("OpenSCManager(,,delete) failed rc=%lu\n", GetLastError());
    116116        return -1;
    117117    }
     
    138138            else
    139139            {
    140                 printf("Failed to stop service. status=%d (%#x)\n", Status.dwCurrentState, Status.dwCurrentState);
     140                printf("Failed to stop service. status=%ld (%#lx)\n", Status.dwCurrentState, Status.dwCurrentState);
    141141                rc = VERR_GENERAL_FAILURE;
    142142            }
     
    150150            else
    151151            {
    152                 printf("ControlService failed with dwErr=%u. status=%d (%#x)\n",
     152                printf("ControlService failed with dwErr=%ld. status=%lu (%#lx)\n",
    153153                       dwErr, Status.dwCurrentState, Status.dwCurrentState);
    154154                rc = -1;
     
    165165            else
    166166            {
    167                 printf("DeleteService failed lasterr=%d\n", GetLastError());
     167                printf("DeleteService failed lasterr=%lu\n", GetLastError());
    168168                rc = -1;
    169169            }
     
    174174        rc = 0;
    175175    else
    176         printf("OpenService failed lasterr=%d\n", GetLastError());
     176        printf("OpenService failed lasterr=%lu\n", GetLastError());
    177177    CloseServiceHandle(hSMgr);
    178178    return rc;
     
    194194    if (hDevice == INVALID_HANDLE_VALUE)
    195195    {
    196         printf("CreateFile did not work. GetLastError() 0x%x\n", GetLastError());
     196        printf("CreateFile did not work. GetLastError() %lu\n", GetLastError());
    197197    }
    198198    return hDevice;
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