X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EmulatorPkg%2FEmuSimpleFileSystemDxe%2FEmuSimpleFileSystem.c;h=4709f7a46f15a572cafb77eee865c1ba87ecdcf4;hb=95dd7a6ecd2358208a9f82bb948cafddebd78519;hp=0af4860e4f59f5f82aa94c5fe2852a4f03264619;hpb=d18d8a1d0e370f8ce6ccc2725f4170586d457e53;p=mirror_edk2.git diff --git a/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c b/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c index 0af4860e4f..4709f7a46f 100644 --- a/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c +++ b/EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystem.c @@ -255,7 +255,7 @@ EmuSimpleFileSystemWrite ( /** - Set a files current position + Get a file's current position @param This Protocol instance pointer. @param Position Byte position from the start of the file. @@ -292,7 +292,7 @@ EmuSimpleFileSystemGetPosition ( /** - Get a file's current position + Set file's current position @param This Protocol instance pointer. @param Position Byte position from the start of the file. @@ -501,6 +501,7 @@ EmuSimpleFileSystemOpenVolume ( PrivateFile = AllocatePool (sizeof (EMU_EFI_FILE_PRIVATE)); if (PrivateFile == NULL) { + Status = EFI_OUT_OF_RESOURCES; goto Done; } @@ -722,6 +723,7 @@ EmuSimpleFileSystemDriverBindingStart ( Private = AllocateZeroPool (sizeof (EMU_SIMPLE_FILE_SYSTEM_PRIVATE)); if (Private == NULL) { + Status = EFI_OUT_OF_RESOURCES; goto Done; }