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; }