mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-06 00:56:03 -06:00
dll: FspFileSystemPreflight
This commit is contained in:
1 parent
b65322c2ac
commit
2fe4e18d9c
1 file changed
+7
-2
+7
-2
@@ -99,10 +99,15 @@ FSP_API NTSTATUS FspFileSystemPreflight(PWSTR DevicePath,
|
|||||||
OPEN_EXISTING,
|
OPEN_EXISTING,
|
||||||
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT,
|
FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT,
|
||||||
0);
|
0);
|
||||||
Result = INVALID_HANDLE_VALUE != DirHandle || ERROR_FILE_NOT_FOUND != GetLastError() ?
|
|
||||||
STATUS_OBJECT_NAME_COLLISION : STATUS_SUCCESS;
|
|
||||||
if (INVALID_HANDLE_VALUE != DirHandle)
|
if (INVALID_HANDLE_VALUE != DirHandle)
|
||||||
|
{
|
||||||
CloseHandle(DirHandle);
|
CloseHandle(DirHandle);
|
||||||
|
Result = STATUS_OBJECT_NAME_COLLISION;
|
||||||
|
}
|
||||||
|
else if (ERROR_FILE_NOT_FOUND != GetLastError())
|
||||||
|
Result = STATUS_OBJECT_NAME_INVALID;
|
||||||
|
else
|
||||||
|
Result = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user