VirtualBox

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


Ignore:
Timestamp:
Jul 31, 2016 10:08:55 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109365
Message:

Installer: warnings

File:
1 edited

Legend:

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

    r62686 r62778  
    6666
    6767
    68 BOOL APIENTRY DllMain(HANDLE hModule,
    69                       DWORD  ul_reason_for_call,
    70                       LPVOID lpReserved)
    71 {
     68BOOL APIENTRY DllMain(HANDLE hModule, DWORD  uReason, LPVOID lpReserved)
     69{
     70    RT_NOREF3(hModule, uReason, lpReserved);
    7271    return TRUE;
    7372}
     73
    7474
    7575static void logString(MSIHANDLE hInstall, LPCSTR szString, ...)
     
    501501static MSIHANDLE g_hCurrentModule = NULL;
    502502
    503 static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char * msg, void * pvContext)
    504 {
     503static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char *pszMsg, void *pvContext)
     504{
     505    RT_NOREF1(pvContext);
    505506    switch (enmSeverity)
    506507    {
     
    510511        case VBOXDRVCFG_LOG_SEVERITY_REL:
    511512            if (g_hCurrentModule)
    512                 logString(g_hCurrentModule, (LPCSTR)msg);
     513                logString(g_hCurrentModule, pszMsg);
    513514            break;
    514515        default:
     
    858859        if (uErr == ERROR_SUCCESS)
    859860        {
    860             WCHAR wszInfName[] = NETLWF_INF_NAME;
    861861            WCHAR wszInf[MAX_PATH];
    862862            DWORD cchInf = RT_ELEMENTS(wszInf) - sizeof(NETLWF_INF_NAME) - 1;
     
    975975    netCfgLoggerEnable(hModule);
    976976
    977     BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
    978     bool bSetStaticIp = true;
     977    BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
    979978
    980979    logStringW(hModule, L"CreateHostOnlyInterface: Creating host-only interface");
     
    984983    GUID guid;
    985984    WCHAR wszMpInf[MAX_PATH];
    986     DWORD cchMpInf = RT_ELEMENTS(wszMpInf) - wcslen(pwszInfName) - 1 - 1;
     985    DWORD cchMpInf = RT_ELEMENTS(wszMpInf) - (DWORD)wcslen(pwszInfName) - 1 - 1;
    987986    LPCWSTR pwszInfPath = NULL;
    988987    bool bIsFile = false;
     
    10751074    /* Restore original setup mode. */
    10761075    logStringW(hModule, L"CreateHostOnlyInterface: Almost done...");
    1077     if (bSetupModeInteractive)
    1078         SetupSetNonInteractiveMode(bSetupModeInteractive);
     1076    if (fSetupModeInteractive)
     1077        SetupSetNonInteractiveMode(fSetupModeInteractive);
    10791078
    10801079    netCfgLoggerDisable();
     
    11041103    logStringW(hModule, L"RemoveHostOnlyInterfaces: Removing all host-only interfaces");
    11051104
    1106     BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
     1105    BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
    11071106
    11081107    HRESULT hr = VBoxNetCfgWinRemoveAllNetDevicesOfId(pwszId);
     
    11221121
    11231122    /* Restore original setup mode. */
    1124     if (bSetupModeInteractive)
    1125         SetupSetNonInteractiveMode(bSetupModeInteractive);
     1123    if (fSetupModeInteractive)
     1124        SetupSetNonInteractiveMode(fSetupModeInteractive);
    11261125
    11271126    netCfgLoggerDisable();
     
    11441143    logStringW(hModule, L"StopHostOnlyInterfaces: Stopping all host-only interfaces");
    11451144
    1146     BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
     1145    BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
    11471146
    11481147    HRESULT hr = VBoxNetCfgWinPropChangeAllNetDevicesOfId(pwszId, VBOXNECTFGWINPROPCHANGE_TYPE_DISABLE);
     
    11551154
    11561155    /* Restore original setup mode. */
    1157     if (bSetupModeInteractive)
    1158         SetupSetNonInteractiveMode(bSetupModeInteractive);
     1156    if (fSetupModeInteractive)
     1157        SetupSetNonInteractiveMode(fSetupModeInteractive);
    11591158
    11601159    netCfgLoggerDisable();
     
    11771176    logStringW(hModule, L"UpdateHostOnlyInterfaces: Updating all host-only interfaces");
    11781177
    1179     BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
     1178    BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);
    11801179
    11811180    WCHAR wszMpInf[MAX_PATH];
    1182     DWORD cchMpInf = RT_ELEMENTS(wszMpInf) - wcslen(pwszInfName) - 1 - 1;
     1181    DWORD cchMpInf = RT_ELEMENTS(wszMpInf) - (DWORD)wcslen(pwszInfName) - 1 - 1;
    11831182    LPCWSTR pwszInfPath = NULL;
    11841183    bool bIsFile = false;
     
    12361235
    12371236    /* Restore original setup mode. */
    1238     if (bSetupModeInteractive)
    1239         SetupSetNonInteractiveMode(bSetupModeInteractive);
     1237    if (fSetupModeInteractive)
     1238        SetupSetNonInteractiveMode(fSetupModeInteractive);
    12401239
    12411240    netCfgLoggerDisable();
     
    14271426        do
    14281427        {
    1429             DWORD ret = 0;
    14301428            GUID netGuid;
    14311429            SP_DEVINFO_DATA DeviceInfoData;
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