adding __volatile__ on all DIB32 inline asm to ensure it doesn't get
modified when optimizations are enabled
Thx w3seek
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
_____
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
--- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-11 09:53:14 UTC
(rev 15856)
+++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2005-06-11 10:19:33 UTC
(rev 15857)
@@ -49,7 +49,7 @@
PBYTE byteaddr = SurfObj->pvScan0 + y * SurfObj->lDelta;
PDWORD addr = (PDWORD)byteaddr + x1;
- __asm__(
+ __asm__ __volatile__ (
" cld\n"
" mov %0, %%eax\n"
" test $0x03, %%edi\n" /* Align to fullword boundary */
@@ -713,7 +713,7 @@
for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
{
- __asm__(
+ __asm__ __volatile__ (
" cld\n"
" mov %0, %%eax\n"
" test $0x03, %%edi\n" /* Align to fullword boundary */
Show replies by date