Module: wine
Branch: master
Commit: af683e711c4441d7e95dd0bf58271e3fc6d94caf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=af683e711c4441d7e95dd0bf5…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Oct 14 14:24:17 2009 +0200
winex11: The xrender tile picture must be used only inside the critical section.
---
dlls/winex11.drv/xrender.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c
index d83c53d..aac0411 100644
--- a/dlls/winex11.drv/xrender.c
+++ b/dlls/winex11.drv/xrender.c
@@ -2170,6 +2170,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
mask_pict = get_xrender_picture_source(physDevSrc);
/* Use backgroundPixel as the foreground color */
+ EnterCriticalSection( &xrender_cs );
src_pict = get_tile_pict(dst_format, physDevDst->backgroundPixel);
/* Create a destination picture and fill it with textPixel color as the background color */
@@ -2181,6 +2182,7 @@ BOOL X11DRV_XRender_GetSrcAreaStretch(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE
if(dst_pict) pXRenderFreePicture(gdi_display, dst_pict);
wine_tsx11_unlock();
+ LeaveCriticalSection( &xrender_cs );
}
else /* color -> color but with different depths */
{
Module: wine
Branch: master
Commit: 2c725de6dee07d2cc3c22c7df6d371c2b78e6ddb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c725de6dee07d2cc3c22c7df…
Author: Ray Hinchliffe <ray(a)rh-software.com>
Date: Wed Oct 14 09:23:45 2009 +0100
kernel32: Correct ullTotalVirtual for GlobalMemoryStatusEx().
---
dlls/kernel32/heap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index e85ccc3..ead0778 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -1274,7 +1274,7 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
/* FIXME: should do something for other systems */
GetSystemInfo(&si);
- lpmemex->ullTotalVirtual = (char*)si.lpMaximumApplicationAddress-(char*)si.lpMinimumApplicationAddress;
+ lpmemex->ullTotalVirtual = (ULONG_PTR)si.lpMaximumApplicationAddress-(ULONG_PTR)si.lpMinimumApplicationAddress;
/* FIXME: we should track down all the already allocated VM pages and substract them, for now arbitrarily remove 64KB so that it matches NT */
lpmemex->ullAvailVirtual = lpmemex->ullTotalVirtual-64*1024;