Changeset 39429 in vbox for trunk/src/VBox/Main/src-server/generic
- Timestamp:
- Nov 28, 2011 6:22:46 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 75059
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp
r37423 r39429 205 205 RTMemFree(pInfo); 206 206 } 207 if ((rc = pclose(fp)) != 0) 208 { 209 progress->notifyComplete(E_FAIL, 210 COM_IIDOF(IHostNetworkInterface), 211 HostNetworkInterface::getStaticComponentName(), 212 "Failed to execute '"VBOXNETADPCTL_NAME " add' (exit status: %d)", rc); 213 rc = VERR_INTERNAL_ERROR; 214 } 207 215 } 208 if ((rc = pclose(fp)) != 0)216 else 209 217 { 218 /* Failed to add an interface */ 219 rc = VERR_PERMISSION_DENIED; 210 220 progress->notifyComplete(E_FAIL, 211 221 COM_IIDOF(IHostNetworkInterface), 212 222 HostNetworkInterface::getStaticComponentName(), 213 "Failed to execute '"VBOXNETADPCTL_NAME " add' (exit status: %d) ", rc);214 rc = VERR_INTERNAL_ERROR;223 "Failed to execute '"VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc); 224 pclose(fp); 215 225 } 216 226 } 217 227 if (RT_SUCCESS(rc)) 218 228 progress->notifyComplete(rc); 229 else 230 hrc = E_FAIL; 219 231 } 220 232 }
Note:
See TracChangeset
for help on using the changeset viewer.