Skip to content
Snippets Groups Projects
Commit 30c5be39 authored by William Poetra Yoga Hadisoesen's avatar William Poetra Yoga Hadisoesen Committed by Alexandre Julliard
Browse files

Use COLOR_MENUBAR (instead of COLOR_GRADIENTINACTIVECAPTION) as the

upper limit in GetSysColor() validation.
parent cb259593
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment