uxtheme: Fix GetThemeSysString as the error-path was always taken.

This commit is contained in:
Paul Vriens 2006-04-15 16:46:26 +02:00 committed by Alexandre Julliard
parent e7134bd4cd
commit 02bf3558bd
1 changed files with 2 additions and 2 deletions

View File

@ -215,8 +215,8 @@ HRESULT WINAPI GetThemeSysString(HTHEME hTheme, int iStringID,
TRACE("(%p, %d)\n", hTheme, iStringID);
if(!hTheme)
return E_HANDLE;
if(iStringID <= TMT_FIRSTSTRING || iStringID >= TMT_LASTSTRING) {
TRACE("Unknown StringID: %d\n", iStringID);
if(iStringID < TMT_FIRSTSTRING || iStringID > TMT_LASTSTRING) {
WARN("Unknown StringID: %d\n", iStringID);
return STG_E_INVALIDPARAMETER;
}
if((tp = MSSTYLES_FindMetric(TMT_STRING, iStringID)))