From 4decd4860126e63579a4a6282d9cb7f52be57840 Mon Sep 17 00:00:00 2001 From: SmokelessCPU Date: Sun, 11 Sep 2022 12:09:08 +0200 Subject: [PATCH] Fixed Log File Creation --- SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c b/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c index e4d03c7..e23245c 100755 --- a/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c +++ b/SmokelessRuntimeEFIPatcher/SmokelessRuntimeEFIPatcher.c @@ -20,7 +20,7 @@ #include #include "Utility.h" #include "Opcode.h" -#define SREP_VERSION L"0.1.4" +#define SREP_VERSION L"0.1.4a" EFI_BOOT_SERVICES *_gBS = NULL; EFI_RUNTIME_SERVICES *_gRS = NULL; @@ -164,7 +164,7 @@ EFI_STATUS EFIAPI SREPEntry(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *Syst HandleProtocol(LoadedImage->DeviceHandle, &gEfiSimpleFileSystemProtocolGuid, (void **)&FileSystem); FileSystem->OpenVolume(FileSystem, &Root); - Status = Root->Open(Root, &LogFile, LogFileName, EFI_FILE_MODE_WRITE, 0); + Status = Root->Open(Root, &LogFile, LogFileName, EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE, 0); if (Status != EFI_SUCCESS) { Print(L"Failed on Opening Log File : %r\n\r", Status);