Changeset 62778 in vbox for trunk/src/VBox/Installer/win
- Timestamp:
- Jul 31, 2016 10:08:55 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109365
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r62686 r62778 66 66 67 67 68 BOOL APIENTRY DllMain(HANDLE hModule, 69 DWORD ul_reason_for_call, 70 LPVOID lpReserved) 71 { 68 BOOL APIENTRY DllMain(HANDLE hModule, DWORD uReason, LPVOID lpReserved) 69 { 70 RT_NOREF3(hModule, uReason, lpReserved); 72 71 return TRUE; 73 72 } 73 74 74 75 75 static void logString(MSIHANDLE hInstall, LPCSTR szString, ...) … … 501 501 static MSIHANDLE g_hCurrentModule = NULL; 502 502 503 static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char * msg, void * pvContext) 504 { 503 static VOID vboxDrvLoggerCallback(VBOXDRVCFG_LOG_SEVERITY enmSeverity, char *pszMsg, void *pvContext) 504 { 505 RT_NOREF1(pvContext); 505 506 switch (enmSeverity) 506 507 { … … 510 511 case VBOXDRVCFG_LOG_SEVERITY_REL: 511 512 if (g_hCurrentModule) 512 logString(g_hCurrentModule, (LPCSTR)msg);513 logString(g_hCurrentModule, pszMsg); 513 514 break; 514 515 default: … … 858 859 if (uErr == ERROR_SUCCESS) 859 860 { 860 WCHAR wszInfName[] = NETLWF_INF_NAME;861 861 WCHAR wszInf[MAX_PATH]; 862 862 DWORD cchInf = RT_ELEMENTS(wszInf) - sizeof(NETLWF_INF_NAME) - 1; … … 975 975 netCfgLoggerEnable(hModule); 976 976 977 BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE); 978 bool bSetStaticIp = true; 977 BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE); 979 978 980 979 logStringW(hModule, L"CreateHostOnlyInterface: Creating host-only interface"); … … 984 983 GUID guid; 985 984 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; 987 986 LPCWSTR pwszInfPath = NULL; 988 987 bool bIsFile = false; … … 1075 1074 /* Restore original setup mode. */ 1076 1075 logStringW(hModule, L"CreateHostOnlyInterface: Almost done..."); 1077 if ( bSetupModeInteractive)1078 SetupSetNonInteractiveMode( bSetupModeInteractive);1076 if (fSetupModeInteractive) 1077 SetupSetNonInteractiveMode(fSetupModeInteractive); 1079 1078 1080 1079 netCfgLoggerDisable(); … … 1104 1103 logStringW(hModule, L"RemoveHostOnlyInterfaces: Removing all host-only interfaces"); 1105 1104 1106 BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);1105 BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE); 1107 1106 1108 1107 HRESULT hr = VBoxNetCfgWinRemoveAllNetDevicesOfId(pwszId); … … 1122 1121 1123 1122 /* Restore original setup mode. */ 1124 if ( bSetupModeInteractive)1125 SetupSetNonInteractiveMode( bSetupModeInteractive);1123 if (fSetupModeInteractive) 1124 SetupSetNonInteractiveMode(fSetupModeInteractive); 1126 1125 1127 1126 netCfgLoggerDisable(); … … 1144 1143 logStringW(hModule, L"StopHostOnlyInterfaces: Stopping all host-only interfaces"); 1145 1144 1146 BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);1145 BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE); 1147 1146 1148 1147 HRESULT hr = VBoxNetCfgWinPropChangeAllNetDevicesOfId(pwszId, VBOXNECTFGWINPROPCHANGE_TYPE_DISABLE); … … 1155 1154 1156 1155 /* Restore original setup mode. */ 1157 if ( bSetupModeInteractive)1158 SetupSetNonInteractiveMode( bSetupModeInteractive);1156 if (fSetupModeInteractive) 1157 SetupSetNonInteractiveMode(fSetupModeInteractive); 1159 1158 1160 1159 netCfgLoggerDisable(); … … 1177 1176 logStringW(hModule, L"UpdateHostOnlyInterfaces: Updating all host-only interfaces"); 1178 1177 1179 BOOL bSetupModeInteractive = SetupSetNonInteractiveMode(FALSE);1178 BOOL fSetupModeInteractive = SetupSetNonInteractiveMode(FALSE); 1180 1179 1181 1180 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; 1183 1182 LPCWSTR pwszInfPath = NULL; 1184 1183 bool bIsFile = false; … … 1236 1235 1237 1236 /* Restore original setup mode. */ 1238 if ( bSetupModeInteractive)1239 SetupSetNonInteractiveMode( bSetupModeInteractive);1237 if (fSetupModeInteractive) 1238 SetupSetNonInteractiveMode(fSetupModeInteractive); 1240 1239 1241 1240 netCfgLoggerDisable(); … … 1427 1426 do 1428 1427 { 1429 DWORD ret = 0;1430 1428 GUID netGuid; 1431 1429 SP_DEVINFO_DATA DeviceInfoData;
Note:
See TracChangeset
for help on using the changeset viewer.