On Sun Oct 23 15:41:11 2022 +0000, Jinoh Kang wrote:
According to https://testbot.winehq.org/JobDetails.pl?Key=125324, GDI+ acts weird when the bitmap is rotate-flipped while being locked. Some observations:
- GdipImageRotateFlip succeeds after GdipBitmapLockBits.
- After rotate-flip, the bitmap is still in locked state.
- GdipBitmapUnlockBits fails with error 7 (Win32Error) after GdipImageRotateFlip.
- Subsequent attempts to access the pixels or lock bits succeeds, but
the Scan0 is different from the initial BitmapData. Normally I'd add these to tests, but I'm afraid I'm actually running into undefined behaviour. Perhaps test in a child process?
I think that behavior is strange enough that we shouldn't worry about it, at least not until we see a real app doing this. Thank you for checking.