Module: wine Branch: master Commit: 7afd9603b5c2cb452484f2d07ef3839d60dbd94e URL: http://source.winehq.org/git/wine.git/?a=commit;h=7afd9603b5c2cb452484f2d07e...
Author: Vincent Povirk vincent@codeweavers.com Date: Fri Jan 1 14:55:54 2010 -0600
gdiplus: Reset the lock count when unlocking a bitmap in write mode.
---
dlls/gdiplus/image.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 41030ed..9227751 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -578,6 +578,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, { /* we passed a direct reference; no need to do anything */ bitmap->lockmode = 0; + bitmap->numlocks = 0; return Ok; }
@@ -608,6 +609,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, GdipFree(bitmap->bitmapbits); bitmap->bitmapbits = NULL; bitmap->lockmode = 0; + bitmap->numlocks = 0;
return Ok; }