Dmitry Timoshkov : gdiplus: Make sure that GdipBitmapLockBits stores valid lockmode.