Search the whole table when creating solid brushes.

This commit is contained in:
Jon Griffiths 2004-11-21 15:35:15 +00:00 committed by Alexandre Julliard
parent ed92345c0b
commit da086d88c9
1 changed files with 1 additions and 1 deletions

View File

@ -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])
{