diff --git a/reactos/include/rosrtl/sparse.h b/reactos/include/rosrtl/sparse.h index a0f27e21345..2a5cd987806 100644 --- a/reactos/include/rosrtl/sparse.h +++ b/reactos/include/rosrtl/sparse.h @@ -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 diff --git a/reactos/lib/rosrtl/file/sparse.c b/reactos/lib/rosrtl/file/sparse.c index 1228e3ff6a2..4cffa41279e 100644 --- a/reactos/lib/rosrtl/file/sparse.c +++ b/reactos/lib/rosrtl/file/sparse.c @@ -105,7 +105,7 @@ QueryAllocatedFileRanges(HANDLE hFile, lpAllocatedRanges, dwBufferSize, &BytesRet, - NULL)) + NULL) != 0) { return BytesRet; }