]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/FileBuffer.c
ShellPkg/UefiShellDebug1CommandsLib: fix ShellCloseFile() call
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Edit / FileBuffer.c
index 464f9de38e52c7da1238f4f41ad5b00f96190f7d..fd324cc4a8619977ca1fa2b08f94708d8963841d 100644 (file)
@@ -1462,7 +1462,7 @@ FileBufferSave (
 \r
     if (Info != NULL && Info->Attribute & EFI_FILE_DIRECTORY) {\r
       StatusBarSetStatusString (L"Directory Can Not Be Saved");\r
-      ShellCloseFile(FileHandle);\r
+      ShellCloseFile (&FileHandle);\r
       FreePool(Info);\r
       return EFI_LOAD_ERROR;\r
     }\r