uxtheme: Fix GetThemeSysInt.

TMT_FIRSTINT and TMT_LASTINT are the same value here, so the error
path would always be taken. Fix to check only that the values are
outside the possible range.
This commit is contained in:
Mike Hearn 2006-04-07 15:33:56 +01:00 committed by Alexandre Julliard
parent a233d55dbd
commit d46e68da1e
1 changed files with 2 additions and 2 deletions

View File

@ -151,8 +151,8 @@ HRESULT WINAPI GetThemeSysInt(HTHEME hTheme, int iIntID, int *piValue)
TRACE("(%p, %d)\n", hTheme, iIntID);
if(!hTheme)
return E_HANDLE;
if(iIntID <= TMT_FIRSTINT || iIntID >= TMT_LASTINT) {
TRACE("Unknown IntID: %d\n", iIntID);
if(iIntID < TMT_FIRSTINT || iIntID > TMT_LASTINT) {
WARN("Unknown IntID: %d\n", iIntID);
return STG_E_INVALIDPARAMETER;
}
if((tp = MSSTYLES_FindMetric(TMT_INT, iIntID)))