Implement BlEfiDirectorySeparator() routine for setting correct EFI directory separator

This commit is contained in:
2022-10-25 23:12:09 +02:00
parent 727825572a
commit 26884a436b
2 changed files with 27 additions and 2 deletions

View File

@@ -162,6 +162,29 @@ BlDbgPrint(IN PUINT16 Format,
}
}
/**
* Replaces slashes (/) with backslashes (\) in the input string.
*
* @param Path
* A pointer to the string containing a system path, where directory separator will get replaced.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
VOID
BlEfiDirectorySeparator(IN OUT PUCHAR Path)
{
while(*Path)
{
if(*Path == '/')
{
*Path = '\\';
}
Path++;
}
}
/**
* This routine allocates a pool memory.
*