mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -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:
|
exit:
|
||||||
MemFree(VersionInfo);
|
MemFree(VersionInfo);
|
||||||
if (0 != SvcHandle)
|
if (0 != SvcHandle)
|
||||||
CloseServiceHandle(ScmHandle);
|
CloseServiceHandle(SvcHandle);
|
||||||
if (0 != ScmHandle)
|
if (0 != ScmHandle)
|
||||||
CloseServiceHandle(ScmHandle);
|
CloseServiceHandle(ScmHandle);
|
||||||
|
|
||||||
@ -491,7 +491,7 @@ NTSTATUS FspFileSystemUnregister(VOID)
|
|||||||
|
|
||||||
exit:
|
exit:
|
||||||
if (0 != SvcHandle)
|
if (0 != SvcHandle)
|
||||||
CloseServiceHandle(ScmHandle);
|
CloseServiceHandle(SvcHandle);
|
||||||
if (0 != ScmHandle)
|
if (0 != ScmHandle)
|
||||||
CloseServiceHandle(ScmHandle);
|
CloseServiceHandle(ScmHandle);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user