src: dll: FspFsctlStartService: return STATUS_NO_SUCH_DEVICE when WinFsp FSD does not exist

This commit is contained in:
Bill Zissimopoulos 2016-05-19 19:17:07 -07:00
parent 153eb42885
commit 222f015273

View File

@ -212,7 +212,11 @@ static NTSTATUS FspFsctlStartService(VOID)
SvcHandle = OpenServiceW(ScmHandle, DriverName, SERVICE_QUERY_STATUS | SERVICE_START); SvcHandle = OpenServiceW(ScmHandle, DriverName, SERVICE_QUERY_STATUS | SERVICE_START);
if (0 == SvcHandle) if (0 == SvcHandle)
{ {
Result = FspNtStatusFromWin32(GetLastError()); LastError = GetLastError();
if (ERROR_SERVICE_DOES_NOT_EXIST != LastError)
Result = FspNtStatusFromWin32(LastError);
else
Result = STATUS_NO_SUCH_DEVICE;
goto exit; goto exit;
} }