forked from xt-sys/exectos
Implement BlEfiDirectorySeparator() routine for setting correct EFI directory separator
This commit is contained in:
parent
727825572a
commit
26884a436b
@ -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.
|
* This routine allocates a pool memory.
|
||||||
*
|
*
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
#define __XTLDR_XTBL_H
|
#define __XTLDR_XTBL_H
|
||||||
|
|
||||||
#include <xtkmapi.h>
|
#include <xtkmapi.h>
|
||||||
#include <bldefs.h>
|
#include <blmod.h>
|
||||||
#include <blproto.h>
|
|
||||||
#include <xtver.h>
|
#include <xtver.h>
|
||||||
|
|
||||||
|
|
||||||
@ -52,6 +51,9 @@ VOID
|
|||||||
BlDbgPrint(IN PUINT16 Format,
|
BlDbgPrint(IN PUINT16 Format,
|
||||||
IN ...);
|
IN ...);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
BlEfiDirectorySeparator(IN OUT PUCHAR Path);
|
||||||
|
|
||||||
INT_PTR
|
INT_PTR
|
||||||
BlEfiGetSecureBootStatus();
|
BlEfiGetSecureBootStatus();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user