Get rid of BlEfiDirectorySeparator() routine and allow GetVolumeDevicePath() to store ARC name

This commit is contained in:
2022-10-30 12:21:09 +01:00
parent c09b121178
commit b29162841c
3 changed files with 10 additions and 36 deletions

View File

@@ -162,38 +162,6 @@ BlDbgPrint(IN PUINT16 Format,
}
}
/**
* Replaces slashes (/) with backslashes (\) in the string containing on-disk path.
*
* @param Path
* A pointer to the string containing an original system path.
*
* @return A pointer to converted string with EFI supported path separators.
*
* @since XT 1.0
*/
PWCHAR
BlEfiDirectorySeparator(IN PWCHAR Path)
{
PWCHAR EfiPath = NULL;
while(*Path)
{
if(*Path == '/')
{
*EfiPath = '\\';
}
else
{
*EfiPath = *Path;
}
Path++;
EfiPath++;
}
return EfiPath;
}
/**
* This routine allocates a pool memory.
*