From 3f6121839ad43d7de47405058ef23dcd87a42f10 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 25 Oct 2024 12:03:45 -0500 Subject: [PATCH] fix --- repertory/librepertory/src/drives/winfsp/winfsp_drive.cpp | 1 + 1 file changed, 1 insertion(+) 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));