mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
dll: FspFileSystemRegister, FspFileSystemUnregister: fix closing the wrong handle
This commit is contained in:
parent
9ffc3f03ed
commit
e43c5091e4
@ -444,7 +444,7 @@ NTSTATUS FspFileSystemRegister(VOID)
|
||||
exit:
|
||||
MemFree(VersionInfo);
|
||||
if (0 != SvcHandle)
|
||||
CloseServiceHandle(ScmHandle);
|
||||
CloseServiceHandle(SvcHandle);
|
||||
if (0 != ScmHandle)
|
||||
CloseServiceHandle(ScmHandle);
|
||||
|
||||
@ -491,7 +491,7 @@ NTSTATUS FspFileSystemUnregister(VOID)
|
||||
|
||||
exit:
|
||||
if (0 != SvcHandle)
|
||||
CloseServiceHandle(ScmHandle);
|
||||
CloseServiceHandle(SvcHandle);
|
||||
if (0 != ScmHandle)
|
||||
CloseServiceHandle(ScmHandle);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user