mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	dll: FspFileSystemRegister, FspFileSystemUnregister: fix closing the wrong handle
This commit is contained in:
		| @@ -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); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user