diff --git a/StdLib/LibC/Wchar/ConsDecons.c b/StdLib/LibC/Wchar/ConsDecons.c index 534d3e3b08..8435831834 100644 --- a/StdLib/LibC/Wchar/ConsDecons.c +++ b/StdLib/LibC/Wchar/ConsDecons.c @@ -19,7 +19,6 @@ #include -#include #include /* Data initialized by the library constructor */ @@ -44,9 +43,7 @@ __wchar_construct( ASSERT(__wchar_bitmap != NULL); if (EFI_ERROR (Status)) { __wchar_bitmap = NULL; - EFIerrno = Status; - errno = ENOMEM; - return EFIerrno; + return Status; } return RETURN_SUCCESS; } diff --git a/StdLib/LibC/Wchar/Wchar.inf b/StdLib/LibC/Wchar/Wchar.inf index 5a88233600..da9a672f79 100644 --- a/StdLib/LibC/Wchar/Wchar.inf +++ b/StdLib/LibC/Wchar/Wchar.inf @@ -44,7 +44,6 @@ BaseLib BaseMemoryLib MemoryAllocationLib - LibC ################################################################ #