diff --git a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp index d502b169..2865174e 100644 --- a/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp +++ b/repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp @@ -664,6 +664,7 @@ auto winfsp_drive::Open(PWSTR file_name, UINT32 create_options, UINT32 granted_access, PVOID * /*file_node*/, PVOID *file_desc, OpenFileInfo *ofi) -> NTSTATUS { REPERTORY_USES_FUNCTION_NAME(); + *file_desc = reinterpret_cast(INVALID_HANDLE_VALUE); const auto api_path = utils::path::create_api_path(utils::string::to_utf8(file_name));