general SDK improvements

This commit is contained in:
SinaKarvandi 2022-07-14 04:37:31 -07:00
parent 856ec8f34f
commit 1823c024fd
12 changed files with 244 additions and 170 deletions

View file

@ -478,7 +478,7 @@ SetupDriverName(_Inout_updates_bytes_all_(BufferLength) PCHAR DriverLocation,
// Setup path name to driver file.
//
if (FAILED(
StringCbCat(DriverLocation, BufferLength, "\\" DRIVER_NAME ".sys")))
StringCbCat(DriverLocation, BufferLength, "\\" VMM_DRIVER_NAME ".sys")))
{
return FALSE;
}
@ -489,7 +489,7 @@ SetupDriverName(_Inout_updates_bytes_all_(BufferLength) PCHAR DriverLocation,
if ((FileHandle = CreateFile(DriverLocation, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL)) ==
INVALID_HANDLE_VALUE)
{
ShowMessages("%s.sys is not loaded.\n", DRIVER_NAME);
ShowMessages("%s.sys is not loaded.\n", VMM_DRIVER_NAME);
//
// Indicate failure.