advapi32: Fix one byte array overflow during DES unhash.

This commit is contained in:
Alasdair Sinclair 2007-04-22 14:24:48 +01:00 committed by Alexandre Julliard
parent c5339be92b
commit 25142a27d0
1 changed files with 2 additions and 2 deletions

View File

@ -200,9 +200,9 @@ static void KeyShiftRight( unsigned char *key, const int numbits )
{
int j;
for (j = 7; j >= 0; j--)
for (j = 6; j >= 0; j--)
{
if (j!=7 && (key[j] & 0x01))
if (j!=6 && (key[j] & 0x01))
key[j+1] |= 0x80;
key[j] >>= 1;
}