Commit d46e68da authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

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.
parent a233d55d
......@@ -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)))
......
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