- Fix a memory overwrite that was uncovered by recent win32k memory allocation change...
authorGregor Schneider <grschneider@gmail.com>
Sat, 11 Apr 2009 16:48:47 +0000 (16:48 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sat, 11 Apr 2009 16:48:47 +0000 (16:48 +0000)
- Fixes a crash in current QiP Infium that was hidden before, bug #4361

svn path=/trunk/; revision=40460

reactos/subsystems/win32/win32k/dib/dib32bpp.c

index b18248d..430447e 100644 (file)
@@ -257,7 +257,7 @@ DIB_32BPP_BitBltSrcCopy(PBLTINFO BltInfo)
                   {
                     Dest32 = (DWORD *) DestBits + (BltInfo->DestRect.right - BltInfo->DestRect.left - 1);
                     Source32 = (DWORD *) SourceBits + (BltInfo->DestRect.right - BltInfo->DestRect.left - 1);
-                    for (i = BltInfo->DestRect.right; BltInfo->DestRect.left <= i; i--)
+                    for (i = BltInfo->DestRect.right - 1; BltInfo->DestRect.left <= i; i--)
                       {
                         *Dest32-- = XLATEOBJ_iXlate(BltInfo->XlateSourceToDest, *Source32--);
                       }