From 17c92d95264300c2be3b6cafd435d865dcb87afd Mon Sep 17 00:00:00 2001 From: asava Date: Mon, 30 Mar 2020 02:21:38 +0300 Subject: [PATCH] Correct mistake in FileDevicePathToStr --- rEFIt_UEFI/refit/lib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rEFIt_UEFI/refit/lib.cpp b/rEFIt_UEFI/refit/lib.cpp index 74b7d3363..7b397efa1 100644 --- a/rEFIt_UEFI/refit/lib.cpp +++ b/rEFIt_UEFI/refit/lib.cpp @@ -1700,7 +1700,7 @@ CHAR16 *FileDevicePathToStr(IN EFI_DEVICE_PATH_PROTOCOL *DevPath) while (Char != NULL) { // StrCpyS(Char, 4, Char + 1); //can't overlap Tail = Char + 1; - while (*Tail != 0) { + while (*Char != 0) { *(Char++) = *(Tail++); } Char = (CHAR16*)StrStr(FilePath, L"\\\\"); // cast is ok because FilePath is not const, and we know that StrStr returns a pointer in FilePath. Will disappear when using a string object instead of CHAR16*