From 30c5be395ede961a3ee34b6a162f12c74689ec3d Mon Sep 17 00:00:00 2001 From: William Poetra Yoga H Date: Mon, 8 Nov 2004 20:24:50 +0000 Subject: [PATCH] Use COLOR_MENUBAR (instead of COLOR_GRADIENTINACTIVECAPTION) as the upper limit in GetSysColor() validation. --- dlls/oleaut32/oleaut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c index 455fa7b5c13..a8748219912 100644 --- a/dlls/oleaut32/oleaut.c +++ b/dlls/oleaut32/oleaut.c @@ -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); -- 2.11.4.GIT