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:
parent
a233d55dbd
commit
d46e68da1e
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue