http://bugs.winehq.org/show_bug.cgi?id=15388
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2008-09-25 04:27:39 --- (In reply to comment #3)
I'd follow way it is done in CreateDIBitmap (get info early, before any other operations, and bail out if DIB_GetBitmapInfo fails)
Exactly, that's what I meant.