Wrong type for FileExists()

This commit is contained in:
vectorsigma72 2020-05-11 20:45:11 +02:00
parent 9dcb75cbd9
commit a4ac6daf97

View File

@ -560,7 +560,7 @@ EFI_STATUS egScreenShot(VOID)
for (UINTN Index = 0; Index < 60; Index++) {
// ScreenshotName = PoolPrint(L"%a%d.png", ScreenShotName, Index);
XStringW Name = SWPrintf("EFI\\CLOVER\\misc\\screenshot%lld.png", Index);
if (!FileExists(SelfRootDir, Name)) {
if (!FileExists(SelfRootDir, Name.wc_str())) {
Status = egSaveFile(SelfRootDir, Name.wc_str(), FileData, FileDataLength);
if (!EFI_ERROR(Status)) {
break;