From e740fd17582ef58e9bdd54314b71ab26d1011b28 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 15 Sep 2004 19:01:23 +0000 Subject: [PATCH] add function to the header file svn path=/trunk/; revision=10869 --- reactos/include/rosrtl/sparse.h | 10 +++++++++- reactos/lib/rosrtl/file/sparse.c | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) 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; }