- # Prototype fix for 32bit process calling |DUPLICATE_EXTENTS_DATA|, diff for https://github.com/kofemann/ms-nfs41-client/commit/72a58cef90496287d2e07aa7c685a388295c8c96
 - diff --git a/sys/nfs41sys_fsctl.c b/sys/nfs41sys_fsctl.c
 - index e80321b..650df52 100644
 - --- a/sys/nfs41sys_fsctl.c
 - +++ b/sys/nfs41sys_fsctl.c
 - @@ -628,6 +628,20 @@ NTSTATUS nfs41_DuplicateData(
 - if (status)
 - goto out;
 - +#if defined(_WIN64)
 - + DUPLICATE_EXTENTS_DATA ded32bit;
 - +
 - + if (IoIs32bitProcess(RxContext->CurrentIrp)) {
 - + PDUPLICATE_EXTENTS_DATA32 xded32bit = (PDUPLICATE_EXTENTS_DATA32)FsCtl->pInputBuffer;
 - +
 - + ded32bit.FileHandle = (HANDLE)xded32bit->FileHandle;
 - + ded32bit.SourceFileOffset = xded32bit->SourceFileOffset;
 - + ded32bit.TargetFileOffset = xded32bit->TargetFileOffset;
 - + ded32bit.ByteCount = xded32bit->ByteCount;
 - + duplicatedatabuffer = &ded32bit;
 - + }
 - +#endif /* defined(_WIN64) */
 - +
 - if (FsCtl->pInputBuffer == NULL) {
 - status = STATUS_INVALID_USER_BUFFER;
 - goto out;
 
Prototype fix for 32bit process calling |DUPLICATE_EXTENTS_DATA|
Posted by Anonymous on Wed 11th Jun 2025 15:40
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
 nrubsig.kpaste.net RSS