Search the whole table when creating solid brushes.
This commit is contained in:
parent
ed92345c0b
commit
da086d88c9
|
@ -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])
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue