]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/FSVariable/FileStorage.c
Fix many bugs in DUET package and now DUET package is enabled for floppy successful.
[mirror_edk2.git] / DuetPkg / FSVariable / FileStorage.c
index 4e366de0a43a7ea4aa746efbb64af44530a5a09f..c4c239a4fc6242e45f54195a8ca073f36c193d71 100644 (file)
@@ -229,7 +229,9 @@ OnSimpleFileSystemInstall (
   NumBytes = Dev->Size;\r
   Status = File->Write (File, &NumBytes, VAR_DATA_PTR (Dev));\r
   ASSERT_EFI_ERROR (Status);\r
-  FileClose (File);\r
+  // KEN: bugbug here if closing file, volume handle will be free,\r
+  // and system will be hang when accessing volume handle in future.\r
+  //FileClose (File);\r
   DEBUG ((EFI_D_ERROR, "FileStorage: Mapped to file!\n"));\r
 }\r
 \r
@@ -407,7 +409,7 @@ OpenStore (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Open the root directory of the volume\r
   //\r