diff --git a/rEFIt_UEFI/libeg/libscreen.cpp b/rEFIt_UEFI/libeg/libscreen.cpp index 25a5fb403..72990548e 100644 --- a/rEFIt_UEFI/libeg/libscreen.cpp +++ b/rEFIt_UEFI/libeg/libscreen.cpp @@ -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;