[PATCH] ntdll: Claim success for FSCTL_SET_SPARSE

Andrew Eikum aeikum at codeweavers.com
Tue Oct 20 13:08:54 CDT 2015


The MS Office 2013 installer expects this to succeed. It is possible
to query for sparse regions, but the installer doesn't seem to care if
it actually happens, so returning success is sufficient.

https://msdn.microsoft.com/en-us/library/windows/desktop/aa364596%28v=vs.85%29.aspx

Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
 dlls/ntdll/file.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 8f89ba5..1027b54 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -1795,6 +1795,11 @@ NTSTATUS WINAPI NtFsControlFile(HANDLE handle, HANDLE event, PIO_APC_ROUTINE apc
         }
         break;
     }
+    case FSCTL_SET_SPARSE:
+        TRACE("FSCTL_SET_SPARSE: Ignoring request\n");
+        io->Information = 0;
+        status = STATUS_SUCCESS;
+        break;
     case FSCTL_PIPE_LISTEN:
     case FSCTL_PIPE_WAIT:
     default:
-- 
2.6.1




More information about the wine-patches mailing list