uxtheme: fix nasty regression with painting of themed progressbar

Alex Villací­s Lasso a_villacis at palosanto.com
Wed Apr 23 09:45:53 CDT 2008


I was about to start adding more richedit tests, when I stumbled onto 
this when trying to install a program. The painting of the install 
progressbar causes UXTHEME_SizedBlt to be called with source width equal 
to zero, which causes a division by zero exception. The previous code 
handled it by not iterating and returning TRUE, so this fix does the 
same after a check.

Changelog:
* Check for zero source dimensions, and if so, return TRUE without doing 
anything.

-- 
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-uxtheme-fix-regression-zero-srcwidth.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080423/d6262b12/attachment.bin 


More information about the wine-patches mailing list