http://bugs.winehq.org/show_bug.cgi?id=15388
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com 2008-09-29 23:11:38 --- (In reply to comment #5)
Created an attachment (id=16377)
--> (http://bugs.winehq.org/attachment.cgi?id=16377) [details]
new patch
This what you had in mind?
Yes, but why are you duplicating a call? You could just use a result of existing one:
DIB_GetBitmapInfo(bi, &width, &height, &planes, &bpp, &compr, &size);
+ if (DIB_GetBitmapInfo( bi, &width, &height, &planes, &bpp, &compr, &size ) == -1) return 0;