From 0f23ee96da29ac846eb460f6c689cc9a82574d7e 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 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 78801fd..1e8bdc9 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -576,6 +576,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, { /* we passed a direct reference; no need to do anything */ bitmap->lockmode = 0; + bitmap->numlocks = 0; return Ok; } @@ -606,6 +607,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, GdipFree(bitmap->bitmapbits); bitmap->bitmapbits = NULL; bitmap->lockmode = 0; + bitmap->numlocks = 0; return Ok; } -- 1.6.3.3