diff --git a/xtldr/efiutil.c b/xtldr/efiutil.c index 3f06c72..43aa96b 100644 --- a/xtldr/efiutil.c +++ b/xtldr/efiutil.c @@ -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. * diff --git a/xtldr/includes/xtbl.h b/xtldr/includes/xtbl.h index 7515608..d1a8f58 100644 --- a/xtldr/includes/xtbl.h +++ b/xtldr/includes/xtbl.h @@ -10,8 +10,7 @@ #define __XTLDR_XTBL_H #include -#include -#include +#include #include @@ -52,6 +51,9 @@ VOID BlDbgPrint(IN PUINT16 Format, IN ...); +VOID +BlEfiDirectorySeparator(IN OUT PUCHAR Path); + INT_PTR BlEfiGetSecureBootStatus();