Ken Thomases : winemac: Add proper locking in macdrv_surface_set_region().
Alexandre Julliard
julliard at winehq.org
Fri Mar 29 12:17:58 CDT 2013
Module: wine
Branch: master
Commit: 7ab76484c44c687e7c95c2680cd6895648fbabfe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ab76484c44c687e7c95c2680cd6895648fbabfe
Author: Ken Thomases <ken at codeweavers.com>
Date: Thu Mar 28 23:33:56 2013 -0500
winemac: Add proper locking in macdrv_surface_set_region().
---
dlls/winemac.drv/surface.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/winemac.drv/surface.c b/dlls/winemac.drv/surface.c
index 748562f..29fc7f8 100644
--- a/dlls/winemac.drv/surface.c
+++ b/dlls/winemac.drv/surface.c
@@ -124,6 +124,8 @@ static void macdrv_surface_set_region(struct window_surface *window_surface, HRG
TRACE("updating surface %p with %p\n", surface, region);
+ window_surface->funcs->lock(window_surface);
+
HeapFree(GetProcessHeap(), 0, surface->region_data);
surface->region_data = NULL;
@@ -133,6 +135,8 @@ static void macdrv_surface_set_region(struct window_surface *window_surface, HRG
if (rc != ERROR)
surface->region_data = get_region_data(region, 0);
}
+
+ window_surface->funcs->unlock(window_surface);
}
/***********************************************************************
More information about the wine-cvs
mailing list