Commit 30c5be39 authored by William Poetra Yoga H's avatar William Poetra Yoga H Committed by Alexandre Julliard

Use COLOR_MENUBAR (instead of COLOR_GRADIENTINACTIVECAPTION) as the

upper limit in GetSysColor() validation.
parent cb259593
......@@ -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);
......
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