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);
|
GdipFree(bitmap->bitmapbits);
|
||||||
bitmap->bitmapbits = NULL;
|
bitmap->bitmapbits = NULL;
|
||||||
|
bitmap->lockmode = 0;
|
||||||
|
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue