Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Application/Shell/ConsoleWrappers.c
- Timestamp:
- Oct 29, 2015 4:30:44 AM (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 changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/ShellPkg/Application/Shell/ConsoleWrappers.c
r58459 r58466 116 116 117 117 /** 118 Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a 118 Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a 119 119 SHELL_FILE_HANDLE to support redirecting input from a file. 120 120 … … 156 156 ProtocolToReturn->SimpleTextIn.Reset = FileBasedSimpleTextInReset; 157 157 ProtocolToReturn->SimpleTextIn.ReadKeyStroke = FileBasedSimpleTextInReadKeyStroke; 158 158 159 159 Status = gBS->CreateEvent ( 160 160 EVT_NOTIFY_WAIT, … … 171 171 ///@todo possibly also install SimpleTextInputEx on the handle at this point. 172 172 Status = gBS->InstallProtocolInterface( 173 &(ProtocolToReturn->TheHandle), 174 &gEfiSimpleTextInProtocolGuid, 175 EFI_NATIVE_INTERFACE, 173 &(ProtocolToReturn->TheHandle), 174 &gEfiSimpleTextInProtocolGuid, 175 EFI_NATIVE_INTERFACE, 176 176 &(ProtocolToReturn->SimpleTextIn)); 177 177 if (!EFI_ERROR(Status)) { … … 185 185 186 186 /** 187 Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a 187 Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a 188 188 SHELL_FILE_HANDLE to support redirecting input from a file. 189 189 … … 208 208 209 209 Status1 = gBS->UninstallProtocolInterface( 210 ((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL*)SimpleTextIn)->TheHandle, 211 &gEfiSimpleTextInProtocolGuid, 210 ((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL*)SimpleTextIn)->TheHandle, 211 &gEfiSimpleTextInProtocolGuid, 212 212 &(((SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL*)SimpleTextIn)->SimpleTextIn)); 213 213 … … 278 278 { 279 279 EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *PassThruProtocol; 280 280 281 281 PassThruProtocol = ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *)This)->OriginalSimpleTextOut; 282 282 283 283 // Pass the QueryMode call thru to the original SimpleTextOutProtocol 284 284 return (PassThruProtocol->QueryMode( … … 416 416 417 417 /** 418 Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a 418 Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a 419 419 SHELL_FILE_HANDLE to support redirecting output from a file. 420 420 … … 469 469 470 470 Status = gBS->InstallProtocolInterface( 471 &(ProtocolToReturn->TheHandle), 472 &gEfiSimpleTextOutProtocolGuid, 473 EFI_NATIVE_INTERFACE, 471 &(ProtocolToReturn->TheHandle), 472 &gEfiSimpleTextOutProtocolGuid, 473 EFI_NATIVE_INTERFACE, 474 474 &(ProtocolToReturn->SimpleTextOut)); 475 475 if (!EFI_ERROR(Status)) { … … 483 483 484 484 /** 485 Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a 485 Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a 486 486 SHELL_FILE_HANDLE to support redirecting output from a file. 487 487 … … 501 501 } 502 502 Status = gBS->UninstallProtocolInterface( 503 ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*)SimpleTextOut)->TheHandle, 504 &gEfiSimpleTextOutProtocolGuid, 503 ((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*)SimpleTextOut)->TheHandle, 504 &gEfiSimpleTextOutProtocolGuid, 505 505 &(((SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*)SimpleTextOut)->SimpleTextOut)); 506 506 FreePool(SimpleTextOut);
Note:
See TracChangeset
for help on using the changeset viewer.