From 7afd9603b5c2cb452484f2d07ef3839d60dbd94e Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 1 Jan 2010 14:55:54 -0600 Subject: [PATCH] gdiplus: Reset the lock count when unlocking a bitmap in write mode. --- dlls/gdiplus/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 41030ed1daf..922775105a9 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; }