Use COLOR_MENUBAR (instead of COLOR_GRADIENTINACTIVECAPTION) as the

upper limit in GetSysColor() validation.
This commit is contained in:
William Poetra Yoga H 2004-11-08 20:24:50 +00:00 committed by Alexandre Julliard
parent cb2595932c
commit 30c5be395e
1 changed files with 1 additions and 1 deletions

View File

@ -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);