mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
RtlLargeIntegerArithmeticShift() shouldn't return uninitialized data from the stack
svn path=/trunk/; revision=12015
This commit is contained in:
parent
cfabacaaa5
commit
8a11bbf017
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: largeint.c,v 1.1 2004/05/31 19:29:02 gdalsnes Exp $
|
/* $Id: largeint.c,v 1.2 2004/12/11 15:23:51 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -254,7 +254,7 @@ RtlLargeIntegerArithmeticShift (
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* copy the sign bit */
|
/* copy the sign bit */
|
||||||
RC.u.HighPart |= (LargeInteger.u.HighPart & 0x80000000);
|
RC.u.HighPart = (LargeInteger.u.HighPart & 0x80000000);
|
||||||
RC.u.LowPart = LargeInteger.u.HighPart >> Shift;
|
RC.u.LowPart = LargeInteger.u.HighPart >> Shift;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue