- Missed fs_rec in last commit

svn path=/trunk/; revision=39094
This commit is contained in:
Stefan Ginsberg 2009-01-25 16:21:14 +00:00
parent ba67551bdf
commit 931eb2e0b0
2 changed files with 11 additions and 2 deletions

View file

@ -178,7 +178,7 @@ FsRecReadBlock(IN PDEVICE_OBJECT DeviceObject,
{
/* He didn't, allocate one */
*Buffer = ExAllocatePoolWithTag(NonPagedPool,
PAGE_ROUND_UP(Length),
ROUND_TO_PAGES(Length),
FSREC_TAG);
if (!*Buffer) return FALSE;
}

View file

@ -13,11 +13,11 @@
#include <ntifs.h>
#include <ntdddisk.h>
#include <ntddcdrm.h>
#include "helper.h"
//
// Tag for memory allocations
//
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define FSREC_TAG TAG('F', 's', 'R', 'c')
//
@ -26,6 +26,15 @@
#define UDFS_VRS_START_OFFSET 32768
#define UDFS_AVDP_SECTOR 256
//
// Non-standard rounding macros
//
#define ROUND_UP(n, align) \
ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
#define ROUND_DOWN(n, align) \
(((ULONG)n) & ~((align) - 1l))
//
// Conversion types and macros taken from internal ntifs headers
//