Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/StdLib/EfiSocketLib/Service.c
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/StdLib/EfiSocketLib/Service.c
r48674 r58459 30 30 31 31 @retval EFI_SUCCESS This driver is added to Controller. 32 @retval other This driver does not support this device. 32 @retval EFI_OUT_OF_RESOURCES No more memory available. 33 @retval EFI_UNSUPPORTED This driver does not support this device. 33 34 34 35 **/ … … 41 42 { 42 43 BOOLEAN bInUse; 44 EFI_STATUS ExitStatus; 43 45 UINTN LengthInBytes; 44 46 UINT8 * pBuffer; … … 57 59 // Assume the list is empty 58 60 // 59 Status = EFI_UNSUPPORTED;61 ExitStatus = EFI_UNSUPPORTED; 60 62 bInUse = FALSE; 61 63 … … 172 174 173 175 // 174 // Determine if the initialization was successful 175 // 176 if ( EFI_ERROR ( Status )) { 177 DEBUG (( DEBUG_ERROR | DEBUG_POOL | DEBUG_INIT, 178 "ERROR - Failed to initialize service %s on 0x%08x, Status: %r\r\n", 179 pSocketBinding->pName, 180 Controller, 181 Status )); 182 183 // 184 // Free the network service binding if necessary 185 // 186 gBS->UninstallMultipleProtocolInterfaces ( 187 Controller, 188 pSocketBinding->pTagGuid, 189 pService, 190 NULL ); 191 DEBUG (( DEBUG_POOL | DEBUG_INIT | DEBUG_INFO, 192 "Removed: %s TagGuid from 0x%08x\r\n", 193 pSocketBinding->pName, 194 Controller )); 195 } 176 // At least one service was made available 177 // 178 ExitStatus = EFI_SUCCESS; 196 179 } 197 180 else { … … 242 225 "ERROR - Failed service allocation, Status: %r\r\n", 243 226 Status )); 227 ExitStatus = EFI_OUT_OF_RESOURCES; 228 break; 244 229 } 245 230 } … … 255 240 // Display the driver start status 256 241 // 257 DBG_EXIT_STATUS ( Status );258 return Status;242 DBG_EXIT_STATUS ( ExitStatus ); 243 return ExitStatus; 259 244 } 260 245
Note:
See TracChangeset
for help on using the changeset viewer.