diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-30 06:15:19 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-30 06:15:19 +0000 |
commit | fa332de7493caee4d3fa22392dc6292cfbb6f224 (patch) | |
tree | 3067198e303277699f3879d8d25e66c0254979a8 /EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c | |
parent | db29f969a9eb430eb81fd027614d4933c1d450e1 (diff) | |
download | edk2-platforms-fa332de7493caee4d3fa22392dc6292cfbb6f224.tar.xz |
1. Perfect libraries MSA files
2. Use MemoryAllocationLib to replace gBS memory services in EdkEt32Pkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2517 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c')
-rw-r--r-- | EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c index 5e7a985ed6..5666ec28ec 100644 --- a/EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c +++ b/EdkNt32Pkg/Dxe/WinNtThunk/Bus/BlockIo/WinNtBlockIo.c @@ -346,7 +346,7 @@ Returns: //
FreeUnicodeStringTable (Private->ControllerNameTable);
- gBS->FreePool (Private);
+ FreePool (Private);
}
return Status;
@@ -430,12 +430,8 @@ Returns: WinNtIo->WinNtThunk->SetErrorMode (SEM_FAILCRITICALERRORS);
- Status = gBS->AllocatePool (
- EfiBootServicesData,
- sizeof (WIN_NT_BLOCK_IO_PRIVATE),
- &Private
- );
- ASSERT_EFI_ERROR (Status);
+ Private = AllocatePool (sizeof (WIN_NT_BLOCK_IO_PRIVATE));
+ ASSERT (Private != NULL);
EfiInitializeLock (&Private->Lock, EFI_TPL_NOTIFY);
@@ -518,7 +514,7 @@ Returns: );
if (EFI_ERROR (Status)) {
FreeUnicodeStringTable (Private->ControllerNameTable);
- gBS->FreePool (Private);
+ FreePool (Private);
}
DEBUG ((EFI_D_INIT, "BlockDevice added: %s\n", Filename));
|