From 8d5fa22d0afee040c6660853d7c8d312ea0dfec6 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 12 Jan 2005 14:57:03 +0000 Subject: [PATCH] Portability fixes. svn path=/trunk/; revision=12969 --- reactos/include/ntos/rtl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/include/ntos/rtl.h b/reactos/include/ntos/rtl.h index 61d33414bbf..195c7ff5953 100755 --- a/reactos/include/ntos/rtl.h +++ b/reactos/include/ntos/rtl.h @@ -2239,7 +2239,7 @@ RtlResetRtlTranslations (IN PNLSTABLEINFO NlsTable); * ); */ #define RtlRetrieveUshort(DestAddress,SrcAddress) \ - if ((ULONG)(SrcAddress) & SHORT_MASK) \ + if ((ULONG_PTR)(SrcAddress) & SHORT_MASK) \ { \ ((PUCHAR)(DestAddress))[0]=((PUCHAR)(SrcAddress))[0]; \ ((PUCHAR)(DestAddress))[1]=((PUCHAR)(SrcAddress))[1]; \ @@ -2347,7 +2347,7 @@ RtlSplay ( * ); */ #define RtlStoreUlong(Address,Value) \ - if ((ULONG)(Address) & LONG_MASK) \ + if ((ULONG_PTR)(Address) & LONG_MASK) \ { \ ((PUCHAR)(Address))[LONG_LEAST_SIGNIFICANT_BIT]=(UCHAR)(FIRSTBYTE(Value)); \ ((PUCHAR)(Address))[LONG_3RD_MOST_SIGNIFICANT_BIT]=(UCHAR)(FIRSTBYTE(Value)); \ @@ -2356,7 +2356,7 @@ RtlSplay ( } \ else \ { \ - *((PULONG)(Address))=(ULONG)(Value); \ + *((PULONG_PTR)(Address))=(ULONG_PTR)(Value); \ } /* @@ -2367,7 +2367,7 @@ RtlSplay ( * ); */ #define RtlStoreUshort(Address,Value) \ - if ((ULONG)(Address) & SHORT_MASK) \ + if ((ULONG_PTR)(Address) & SHORT_MASK) \ { \ ((PUCHAR)(Address))[SHORT_LEAST_SIGNIFICANT_BIT]=(UCHAR)(FIRSTBYTE(Value)); \ ((PUCHAR)(Address))[SHORT_MOST_SIGNIFICANT_BIT]=(UCHAR)(SECONDBYTE(Value)); \