Fix memcpy in MFDRV_CreateBrushIndirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





ChangeLog:

     Fix wrong structure used to determine the size of a memcpy
     in MFDRV_CreateBrushIndirect.

Warren Baird : Warren_Baird@cimmetry.com
Xavier Servettaz

diff -ur clean/wine/dlls/gdi/mfdrv/objects.c wine/dlls/gdi/mfdrv/objects.c
--- clean/wine/dlls/gdi/mfdrv/objects.c  Wed Jan 29 15:30:25 2003
+++ wine/dlls/gdi/mfdrv/objects.c  Fri Jan 31 15:16:03 2003
@@ -68,7 +68,7 @@
         mr = HeapAlloc( GetProcessHeap(), 0, size );
         mr->rdSize = size / 2;
         mr->rdFunction = META_CREATEBRUSHINDIRECT;
-        memcpy( mr->rdParm, &lb16, sizeof(LOGBRUSH));
+        memcpy( mr->rdParm, &lb16, sizeof(LOGBRUSH16));
         break;
     }
     case BS_PATTERN:




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux