Alexandre Julliard : gdi32: Allocate and initialize GDI objects before giving them a handle.
Module: wine Branch: master Commit: 311c53db4f485a5905d7fce95bcd116ca4044709 URL: http://source.winehq.org/git/wine.git/?a=commit;h=311c53db4f485a5905d7fce95b... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 28 18:43:06 2009 +0100 gdi32: Allocate and initialize GDI objects before giving them a handle. This makes it unnecessary to hold the GDI lock since the object cannot be accessed before it has a handle. --- dlls/gdi32/bitmap.c | 21 ++++++++++-------- dlls/gdi32/brush.c | 21 +++++++++++++----- dlls/gdi32/dc.c | 31 ++++++++++++++++----------- dlls/gdi32/enhmetafile.c | 16 +++++++------- dlls/gdi32/font.c | 34 ++++++++++++++++------------- dlls/gdi32/gdi_private.h | 2 +- dlls/gdi32/gdiobj.c | 52 +++++++++++++-------------------------------- dlls/gdi32/metafile.c | 14 ++++++------ dlls/gdi32/palette.c | 9 +++++-- dlls/gdi32/pen.c | 16 +++++++------- dlls/gdi32/region.c | 14 ++++++++--- 11 files changed, 119 insertions(+), 111 deletions(-) Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=311c53db4f485a5905d7fc...
participants (1)
-
Alexandre Julliard