forked from xt-sys/exectos
Get rid of BlEfiDirectorySeparator() routine and allow GetVolumeDevicePath() to store ARC name
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user