add function to the header file
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 15 Sep 2004 19:01:23 +0000 (19:01 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 15 Sep 2004 19:01:23 +0000 (19:01 +0000)
svn path=/trunk/; revision=10869

reactos/include/rosrtl/sparse.h
reactos/lib/rosrtl/file/sparse.c

index a0f27e2..2a5cd98 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: sparse.h,v 1.1 2004/09/15 18:57:01 weiden Exp $
+/* $Id: sparse.h,v 1.2 2004/09/15 19:01:23 weiden Exp $
  */
 
 #ifndef ROSRTL_SPARSE_H__
@@ -19,6 +19,14 @@ ZeroFileData(HANDLE hFile,
              PLARGE_INTEGER pliFileOffset,
              PLARGE_INTEGER pliBeyondFinalZero);
 
+DWORD
+STDCALL
+QueryAllocatedFileRanges(HANDLE hFile,
+                         PLARGE_INTEGER pliFileOffset,
+                         PLARGE_INTEGER pliLength,
+                         PFILE_ALLOCATED_RANGE_BUFFER lpAllocatedRanges,
+                         DWORD dwBufferSize);
+
 #ifdef __cplusplus
 }
 #endif
index 1228e3f..4cffa41 100644 (file)
@@ -105,7 +105,7 @@ QueryAllocatedFileRanges(HANDLE hFile,
                      lpAllocatedRanges,
                      dwBufferSize,
                      &BytesRet,
-                      NULL))
+                     NULL) != 0)
   {
     return BytesRet;
   }