pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Prototype fix for 32bit process calling |DUPLICATE_EXTENTS_DATA|
Posted by Anonymous on Wed 11th Jun 2025 15:40
raw | new post

  1. # Prototype fix for 32bit process calling |DUPLICATE_EXTENTS_DATA|, diff for https://github.com/kofemann/ms-nfs41-client/commit/72a58cef90496287d2e07aa7c685a388295c8c96
  2. diff --git a/sys/nfs41sys_fsctl.c b/sys/nfs41sys_fsctl.c
  3. index e80321b..650df52 100644
  4. --- a/sys/nfs41sys_fsctl.c
  5. +++ b/sys/nfs41sys_fsctl.c
  6. @@ -628,6 +628,20 @@ NTSTATUS nfs41_DuplicateData(
  7.      if (status)
  8.          goto out;
  9.  
  10. +#if defined(_WIN64)
  11. +    DUPLICATE_EXTENTS_DATA ded32bit;
  12. +    
  13. +    if (IoIs32bitProcess(RxContext->CurrentIrp)) {
  14. +        PDUPLICATE_EXTENTS_DATA32 xded32bit = (PDUPLICATE_EXTENTS_DATA32)FsCtl->pInputBuffer;
  15. +
  16. +        ded32bit.FileHandle = (HANDLE)xded32bit->FileHandle;
  17. +        ded32bit.SourceFileOffset = xded32bit->SourceFileOffset;
  18. +        ded32bit.TargetFileOffset = xded32bit->TargetFileOffset;
  19. +        ded32bit.ByteCount = xded32bit->ByteCount;
  20. +        duplicatedatabuffer = &ded32bit;
  21. +    }
  22. +#endif /* defined(_WIN64) */
  23. +
  24.      if (FsCtl->pInputBuffer == NULL) {
  25.          status = STATUS_INVALID_USER_BUFFER;
  26.          goto out;

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at