Nathan Beckmann : gdiplus: Update bitmap state in GdipUnlockBitmapBits.

Alexandre Julliard julliard at winehq.org
Mon Mar 10 07:16:54 CDT 2008


Module: wine
Branch: master
Commit: eabc62db003b371eac1c2f6e03dcd258195608bd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eabc62db003b371eac1c2f6e03dcd258195608bd

Author: Nathan Beckmann <nathan.beckmann at gmail.com>
Date:   Fri Mar  7 01:19:04 2008 -0800

gdiplus: Update bitmap state in GdipUnlockBitmapBits.

---

 dlls/gdiplus/image.c       |    1 +
 dlls/gdiplus/tests/image.c |    6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 6b827ba..3ffb7c7 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -226,6 +226,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap,
 
     GdipFree(bitmap->bitmapbits);
     bitmap->bitmapbits = NULL;
+    bitmap->lockmode = 0;
 
     return Ok;
 }
diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 4047fee..d40f6c6 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -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);




More information about the wine-cvs mailing list