gdiplus: Update bitmap state in GdipUnlockBitmapBits.
This commit is contained in:
parent
08d49d3e33
commit
eabc62db00
|
@ -226,6 +226,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,
|
|||
|
||||
GdipFree(bitmap->bitmapbits);
|
||||
bitmap->bitmapbits = NULL;
|
||||
bitmap->lockmode = 0;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
|
|
@ -237,10 +237,8 @@ static void test_LockBits(void)
|
|||
}
|
||||
|
||||
/* write, consecutive */
|
||||
todo_wine {
|
||||
stat = GdipBitmapLockBits(bm, &rect, ImageLockModeWrite, PixelFormat24bppRGB, &bd);
|
||||
expect(Ok, stat);
|
||||
}
|
||||
stat = GdipBitmapLockBits(bm, &rect, ImageLockModeWrite, PixelFormat24bppRGB, &bd);
|
||||
expect(Ok, stat);
|
||||
|
||||
if (stat == Ok) {
|
||||
stat = GdipBitmapUnlockBits(bm, &bd);
|
||||
|
|
Loading…
Reference in New Issue