gdiplus: Update bitmap state in GdipUnlockBitmapBits.

This commit is contained in:
Nathan Beckmann 2008-03-07 01:19:04 -08:00 committed by Alexandre Julliard
parent 08d49d3e33
commit eabc62db00
2 changed files with 3 additions and 4 deletions

View File

@ -226,6 +226,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,
GdipFree(bitmap->bitmapbits); GdipFree(bitmap->bitmapbits);
bitmap->bitmapbits = NULL; bitmap->bitmapbits = NULL;
bitmap->lockmode = 0;
return Ok; return Ok;
} }

View File

@ -237,10 +237,8 @@ static void test_LockBits(void)
} }
/* write, consecutive */ /* write, consecutive */
todo_wine { stat = GdipBitmapLockBits(bm, &rect, ImageLockModeWrite, PixelFormat24bppRGB, &bd);
stat = GdipBitmapLockBits(bm, &rect, ImageLockModeWrite, PixelFormat24bppRGB, &bd); expect(Ok, stat);
expect(Ok, stat);
}
if (stat == Ok) { if (stat == Ok) {
stat = GdipBitmapUnlockBits(bm, &bd); stat = GdipBitmapUnlockBits(bm, &bd);