- Timestamp:
- May 4, 2012 5:02:07 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp
r38735 r41174 57 57 58 58 ComPtr<IHost> host; 59 CHECK_ERROR (a->virtualBox, COMGETTER(Host)(host.asOutParam()));59 CHECK_ERROR_RET(a->virtualBox, COMGETTER(Host)(host.asOutParam()), 1); 60 60 61 61 ComPtr<IHostNetworkInterface> hif; 62 62 ComPtr<IProgress> progress; 63 63 64 CHECK_ERROR (host, CreateHostOnlyNetworkInterface (hif.asOutParam(), progress.asOutParam()));64 CHECK_ERROR_RET(host, CreateHostOnlyNetworkInterface (hif.asOutParam(), progress.asOutParam()), 1); 65 65 66 66 rc = showProgress(progress); -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r41025 r41174 1136 1136 ComAssertComRCRet(hrc, hrc); 1137 1137 #endif 1138 return S_OK; 1139 } 1140 1141 return r == VERR_NOT_IMPLEMENTED ? E_NOTIMPL : E_FAIL; 1138 } 1139 1140 return S_OK; 1142 1141 #else 1143 1142 return E_NOTIMPL; -
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r39429 r41174 166 166 else 167 167 strcat(szAdpCtl, "add"); 168 if (strlen(szAdpCtl) < RTPATH_MAX - sizeof(" 2>&1")) 169 strcat(szAdpCtl, " 2>&1"); 168 170 FILE *fp = popen(szAdpCtl, "r"); 169 171 170 172 if (fp) 171 173 { 172 char szBuf[ VBOXNET_MAX_SHORT_NAME];174 char szBuf[128]; /* We are not interested in long error messages. */ 173 175 if (fgets(szBuf, sizeof(szBuf), fp)) 174 176 { 177 if (!strncmp(VBOXNETADPCTL_NAME ":", szBuf, sizeof(VBOXNETADPCTL_NAME))) 178 { 179 progress->notifyComplete(E_FAIL, 180 COM_IIDOF(IHostNetworkInterface), 181 HostNetworkInterface::getStaticComponentName(), 182 "%s", szBuf); 183 return E_FAIL; 184 } 175 185 char *pLast = szBuf + strlen(szBuf) - 1; 176 186 if (pLast >= szBuf && *pLast == '\n')
Note:
See TracChangeset
for help on using the changeset viewer.