ntoskrnl.exe/tests: Also handle ERROR_INVALID_IMAGE_HASH.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2018-05-01 18:38:02 -05:00 committed by Alexandre Julliard
parent c5c37cf6b3
commit 0dc84eada2
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ static SC_HANDLE load_driver(char *filename)
SetLastError(0xdeadbeef);
ret = StartServiceA(service, 0, NULL);
if (!ret && GetLastError() == ERROR_DRIVER_BLOCKED)
if (!ret && (GetLastError() == ERROR_DRIVER_BLOCKED || GetLastError() == ERROR_INVALID_IMAGE_HASH))
{
/* If Secure Boot is enabled or the machine is 64-bit, it will reject an unsigned driver. */
skip("Failed to start service; probably your machine doesn't accept unsigned drivers.\n");