mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Portability fixes.
svn path=/trunk/; revision=12969
This commit is contained in:
parent
0918733dc9
commit
8d5fa22d0a
1 changed files with 4 additions and 4 deletions
|
@ -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)); \
|
||||
|
|
Loading…
Reference in a new issue