X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdrivers%2Ffilesystems%2Fntfs%2Fattrib.c;h=e334ba98b00a743a62d6c35b9d713f922cf940e0;hp=95a5af6630b3441507a3337f70d1f115af2499e3;hb=eb884f4969e08cce4eff9c9f7e558d499dda8a59;hpb=bec2c26ca364fc707f0f9c032b0c629ce95093eb diff --git a/reactos/drivers/filesystems/ntfs/attrib.c b/reactos/drivers/filesystems/ntfs/attrib.c index 95a5af6630b..e334ba98b00 100644 --- a/reactos/drivers/filesystems/ntfs/attrib.c +++ b/reactos/drivers/filesystems/ntfs/attrib.c @@ -88,7 +88,7 @@ FindRun (PNONRESIDENT_ATTRIBUTE NresAttr, *lcn = 0; - for (run = (PUCHAR)((ULONG)NresAttr + NresAttr->RunArrayOffset); + for (run = (PUCHAR)((ULONG_PTR)NresAttr + NresAttr->RunArrayOffset); *run != 0; run += RunLength(run)) { *lcn += RunLCN(run); @@ -248,7 +248,7 @@ NtfsDumpAttribute (PATTRIBUTE Attribute) { Name.Length = Attribute->NameLength * sizeof(WCHAR); Name.MaximumLength = Name.Length; - Name.Buffer = (PWCHAR)((ULONG)Attribute + Attribute->NameOffset); + Name.Buffer = (PWCHAR)((ULONG_PTR)Attribute + Attribute->NameOffset); DbgPrint("'%wZ' ", &Name); }