diff options
Diffstat (limited to 'EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopDriver.c')
-rw-r--r-- | EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopDriver.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopDriver.c b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopDriver.c index 6013165..bf2abc4 100644 --- a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopDriver.c +++ b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/Gop/WinNtGopDriver.c @@ -1,6 +1,6 @@ /** @file -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -125,12 +125,8 @@ WinNtGopDriverBindingStart ( // Allocate Private context data for SGO inteface. // Private = NULL; - Status = gBS->AllocatePool ( - EfiBootServicesData, - sizeof (GOP_PRIVATE_DATA), - &Private - ); - if (EFI_ERROR (Status)) { + Private = AllocatePool (sizeof (GOP_PRIVATE_DATA)); + if (Private == NULL) { goto Done; } // @@ -185,7 +181,7 @@ Done: FreeUnicodeStringTable (Private->ControllerNameTable); } - gBS->FreePool (Private); + FreePool (Private); } } @@ -270,7 +266,7 @@ WinNtGopDriverBindingStop ( // FreeUnicodeStringTable (Private->ControllerNameTable); - gBS->FreePool (Private); + FreePool (Private); } |