dll: FspFileSystemRegister, FspFileSystemUnregister: rename and place in fsctl.c

This commit is contained in:
Bill Zissimopoulos
2016-05-05 11:14:23 -07:00
parent 4a4fba4670
commit de973fa5ab
4 changed files with 323 additions and 322 deletions

View File

@ -51,18 +51,15 @@ HRESULT WINAPI DllRegisterServer(VOID)
{
NTSTATUS Result;
Result = FspFileSystemRegister();
FspDebugLog("FspFileSystemRegister = %lx\n", Result);
Result = FspFsctlRegister();
FspDebugLog("FspFsctlRegister = %lx\n", Result);
if (!NT_SUCCESS(Result))
goto exit;
Result = FspNpRegister();
FspDebugLog("FspNpRegister = %lx\n", Result);
if (!NT_SUCCESS(Result))
{
FspFileSystemUnregister();
goto exit;
}
exit:
return NT_SUCCESS(Result) ? S_OK : 0x80040201/*SELFREG_E_CLASS*/;
@ -77,10 +74,11 @@ HRESULT WINAPI DllUnregisterServer(VOID)
if (!NT_SUCCESS(Result))
goto exit;
Result = FspFileSystemUnregister();
FspDebugLog("FspFileSystemUnregister = %lx\n", Result);
Result = FspFsctlUnregister();
FspDebugLog("FspFsctlUnregister = %lx\n", Result);
if (!NT_SUCCESS(Result))
{
/* roll back network provider unregistration if possible */
FspNpRegister();
goto exit;
}