PVOID DriverBase;
// Separate the path to file name and directory path
- snprintf(DriverPath, sizeof(DriverPath), "%wZ", FilePath);
+ _snprintf(DriverPath, sizeof(DriverPath), "%wZ", FilePath);
DriverNamePos = strrchr(DriverPath, '\\');
if (DriverNamePos != NULL)
{
}
// It's not loaded, we have to load it
- snprintf(FullPath, sizeof(FullPath), "%s%wZ", BootPath, FilePath);
+ _snprintf(FullPath, sizeof(FullPath), "%s%wZ", BootPath, FilePath);
Status = WinLdrLoadImage(FullPath, LoaderBootDriver, &DriverBase);
if (!Status)
{