mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-12 19:30:44 +01:00
Correct mistake in FileDevicePathToStr
This commit is contained in:
parent
7e747613a9
commit
17c92d9526
@ -1700,7 +1700,7 @@ CHAR16 *FileDevicePathToStr(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
|
|||||||
while (Char != NULL) {
|
while (Char != NULL) {
|
||||||
// StrCpyS(Char, 4, Char + 1); //can't overlap
|
// StrCpyS(Char, 4, Char + 1); //can't overlap
|
||||||
Tail = Char + 1;
|
Tail = Char + 1;
|
||||||
while (*Tail != 0) {
|
while (*Char != 0) {
|
||||||
*(Char++) = *(Tail++);
|
*(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*
|
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*
|
||||||
|
Loading…
Reference in New Issue
Block a user