Skip to content

Commit a4ac6da

Browse files
committed
Wrong type for FileExists()
1 parent 9dcb75c commit a4ac6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rEFIt_UEFI/libeg/libscreen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ EFI_STATUS egScreenShot(VOID)
560560
for (UINTN Index = 0; Index < 60; Index++) {
561561
// ScreenshotName = PoolPrint(L"%a%d.png", ScreenShotName, Index);
562562
XStringW Name = SWPrintf("EFI\\CLOVER\\misc\\screenshot%lld.png", Index);
563-
if (!FileExists(SelfRootDir, Name)) {
563+
if (!FileExists(SelfRootDir, Name.wc_str())) {
564564
Status = egSaveFile(SelfRootDir, Name.wc_str(), FileData, FileDataLength);
565565
if (!EFI_ERROR(Status)) {
566566
break;

0 commit comments

Comments
 (0)