dll: FspFsctlUnregister: do FspFsctlStopService prior to unregister

This commit is contained in:
Bill Zissimopoulos 2022-09-07 14:20:20 +01:00
parent de9112f6e6
commit b43d1f5502

View File

@ -828,6 +828,8 @@ NTSTATUS FspFsctlUnregister(VOID)
FspSxsAppendSuffix(DriverName, sizeof DriverName, L"" FSP_FSCTL_DRIVER_NAME);
FspFsctlStopService();
ScmHandle = OpenSCManagerW(0, 0, SC_MANAGER_CREATE_SERVICE);
/*
* The SC_MANAGER_CREATE_SERVICE access right is not strictly needed here,