VirtualBox

Ignore:
Timestamp:
Aug 12, 2020 4:09:12 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139865
Message:

Devices/EFI: Merge edk-stable202005 and make it build, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Application/Shell/FileHandleWrappers.c

    r80721 r85718  
    518518
    519519  //
    520   // Limit the line length to the buffer size or the minimun size of the
     520  // Limit the line length to the buffer size or the minimum size of the
    521521  // screen. (The smaller takes effect)
    522522  //
     
    866866      if (Key.UnicodeChar != CHAR_BACKSPACE && !(Key.UnicodeChar == 0 && Key.ScanCode == SCAN_DELETE)) {
    867867        //
    868         // Calulate row and column of the tail of current string
     868        // Calculate row and column of the tail of current string
    869869        //
    870870        TailRow     = Row + (StringLen - StringCurPos + Column + OutputLength) / TotalColumn;
     
    933933
    934934//
    935 // FILE sytle interfaces for StdIn/StdOut/StdErr
     935// FILE style interfaces for StdIn/StdOut/StdErr
    936936//
    937937EFI_FILE_PROTOCOL FileInterfaceStdIn = {
     
    10701070        ((CHAR16*)NewBuffer)[TotalSize / sizeof (CHAR16) - 3] = CHAR_NULL;
    10711071        //
    1072         // If the NewBuffer end with \r\n\0, We will repace '\r' by '\0' and then update TotalSize.
     1072        // If the NewBuffer end with \r\n\0, We will replace '\r' by '\0' and then update TotalSize.
    10731073        //
    10741074        TotalSize -= sizeof(CHAR16) * 2;
     
    16451645    if ((UINTN)(MemFile->Position + (*BufferSize)) > (UINTN)(MemFile->BufferSize)) {
    16461646      MemFile->Buffer = ReallocatePool((UINTN)(MemFile->BufferSize), (UINTN)(MemFile->BufferSize) + (*BufferSize) + MEM_WRITE_REALLOC_OVERHEAD, MemFile->Buffer);
     1647      if (MemFile->Buffer == NULL){
     1648        return EFI_OUT_OF_RESOURCES;
     1649      }
    16471650      MemFile->BufferSize += (*BufferSize) + MEM_WRITE_REALLOC_OVERHEAD;
    16481651    }
     
    16621665    if ((UINTN)(MemFile->Position + AsciiStrSize(AsciiBuffer)) > (UINTN)(MemFile->BufferSize)) {
    16631666      MemFile->Buffer = ReallocatePool((UINTN)(MemFile->BufferSize), (UINTN)(MemFile->BufferSize) + AsciiStrSize(AsciiBuffer) + MEM_WRITE_REALLOC_OVERHEAD, MemFile->Buffer);
     1667      if (MemFile->Buffer == NULL){
     1668        FreePool(AsciiBuffer);
     1669        return EFI_OUT_OF_RESOURCES;
     1670      }
    16641671      MemFile->BufferSize += AsciiStrSize(AsciiBuffer) + MEM_WRITE_REALLOC_OVERHEAD;
    16651672    }
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