Use COLOR_MENUBAR (instead of COLOR_GRADIENTINACTIVECAPTION) as the
upper limit in GetSysColor() validation.
This commit is contained in:
parent
cb2595932c
commit
30c5be395e
|
@ -667,7 +667,7 @@ HRESULT WINAPI OleTranslateColor(
|
|||
/*
|
||||
* Validate GetSysColor index.
|
||||
*/
|
||||
if ((index < COLOR_SCROLLBAR) || (index > COLOR_GRADIENTINACTIVECAPTION))
|
||||
if ((index < COLOR_SCROLLBAR) || (index > COLOR_MENUBAR))
|
||||
return E_INVALIDARG;
|
||||
|
||||
*pColorRef = GetSysColor(index);
|
||||
|
|
Loading…
Reference in New Issue