mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-24 16:27:42 +01:00
Correct error in egSaveFile causing for example folder instead of screenshot
This commit is contained in:
parent
ffec5b89c1
commit
9571af3d83
@ -159,6 +159,7 @@ EFI_STATUS egSaveFile(IN EFI_FILE_HANDLE BaseDir OPTIONAL, IN CONST CHAR16 *File
|
||||
}
|
||||
dirNameLen = p - FileName;
|
||||
StrnCpy(DirName, FileName, dirNameLen);
|
||||
DirName[dirNameLen] = L'\0';
|
||||
Status = BaseDir->Open(BaseDir, &FileHandle, DirName,
|
||||
EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE, EFI_FILE_DIRECTORY);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user