gdiplus: Correctly store the given stride in created bitmaps.
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index e17edde..69f5865 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -1685,6 +1685,8 @@
         GdipFree(pbmi);
 
         if (!hbitmap) return GenericError;
+
+        stride = dib_stride;
     }
     else
     {
@@ -1727,7 +1729,7 @@
     (*bitmap)->hbitmap = hbitmap;
     (*bitmap)->hdc = NULL;
     (*bitmap)->bits = bits;
-    (*bitmap)->stride = dib_stride;
+    (*bitmap)->stride = stride;
     (*bitmap)->own_bits = own_bits;
 
     /* set format-related flags */