Commit da086d88 authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

Search the whole table when creating solid brushes.

parent ed92345c
......@@ -124,7 +124,7 @@ HBRUSH WINAPI CreateBrushIndirect( const LOGBRUSH * brush )
* optimisation). Some apps rely on this as they otherwise
* would leak their brushes.
*/
for (i = 0; i < (sizeof(stockMap)/sizeof(stockMap[0])) / 2; i += 2)
for (i = 0; i < (sizeof(stockMap)/sizeof(stockMap[0])); i += 2)
{
if (brush->lbColor == stockMap[i])
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment