/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006 - 2007, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
\r
Abstract:\r
\r
- Console based on Win32 APIs. \r
+ Console based on Win32 APIs.\r
\r
This file attaches a SimpleTextIn protocol to a previously open window.\r
- \r
+\r
The constructor for this protocol depends on an open window. Currently\r
the SimpleTextOut protocol creates a window when it's constructor is called.\r
- Thus this code must run after the constructor for the SimpleTextOut \r
+ Thus this code must run after the constructor for the SimpleTextOut\r
protocol\r
- \r
+\r
--*/\r
\r
#include "Console.h"\r
} else {\r
return EFI_NOT_READY;\r
}\r
- \r
+\r
//\r
// Check to see if we should return a scan code in place of Unicode character.\r
//\r
goto Done;\r
}\r
\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (INPUT_RECORD) * NtEventCount,\r
- &InputRecord\r
- );\r
- if (EFI_ERROR (Status)) {\r
+ InputRecord = AllocatePool (sizeof (INPUT_RECORD) * NtEventCount);\r
+ if (InputRecord == NULL) {\r
Status = EFI_NOT_READY;\r
goto Done;\r
}\r
\r
Done:\r
if (InputRecord != NULL) {\r
- gBS->FreePool (InputRecord);\r
+ FreePool (InputRecord);\r
}\r
\r
return Status;\r