From ef6551aacae0801c0cc6fbefab5c051480d50985 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Mon, 13 Mar 2017 20:39:47 +0200 Subject: [PATCH] CreateFile: Return STATUS_NO_SUCH_FILE when file not found PowerPoint 2010 was not able to save when STATUS_OBJECT_PATH_NOT_FOUND was returned --- SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.cs b/SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.cs index 271c228..b803b68 100644 --- a/SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.cs +++ b/SMBLibrary/NTFileStore/Adapter/NTFileSystemAdapter.cs @@ -66,7 +66,7 @@ namespace SMBLibrary { if (entry == null) { - return NTStatus.STATUS_OBJECT_PATH_NOT_FOUND; + return NTStatus.STATUS_NO_SUCH_FILE; } fileStatus = FileStatus.FILE_EXISTS;