mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
d_layer <dome@koganet.ne.jp>
Fix some problems with RtlStoreUlong: - Store SECONDBYTE of the value correctly. - Store ULONG value, not ULONG_PTR value. svn path=/trunk/; revision=13027
This commit is contained in:
parent
2b79d428b9
commit
101235ab40
1 changed files with 2 additions and 2 deletions
|
@ -2350,13 +2350,13 @@ RtlSplay (
|
|||
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)); \
|
||||
((PUCHAR)(Address))[LONG_3RD_MOST_SIGNIFICANT_BIT]=(UCHAR)(SECONDBYTE(Value)); \
|
||||
((PUCHAR)(Address))[LONG_2ND_MOST_SIGNIFICANT_BIT]=(UCHAR)(THIRDBYTE(Value)); \
|
||||
((PUCHAR)(Address))[LONG_MOST_SIGNIFICANT_BIT]=(UCHAR)(FOURTHBYTE(Value)); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
*((PULONG_PTR)(Address))=(ULONG_PTR)(Value); \
|
||||
*((PULONG)(Address))=(ULONG)(Value); \
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue