shell32: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2010-03-28 23:50:40 +02:00 committed by Alexandre Julliard
parent ade553823d
commit 6a11b63a80
1 changed files with 1 additions and 1 deletions

View File

@ -1808,7 +1808,7 @@ HPSXA WINAPI SHCreatePropSheetExtArrayEx(HKEY hKey, LPCWSTR pszSubKey, UINT max_
} }
/* The CLSID is stored either in the key itself or in its default value. */ /* The CLSID is stored either in the key itself or in its default value. */
if (!SUCCEEDED(lRet = SHCLSIDFromStringW(szHandler, &clsid))) if (FAILED(lRet = SHCLSIDFromStringW(szHandler, &clsid)))
{ {
dwClsidSize = sizeof(szClsidHandler); dwClsidSize = sizeof(szClsidHandler);
if (SHGetValueW(hkPropSheetHandlers, szHandler, NULL, NULL, szClsidHandler, &dwClsidSize) == ERROR_SUCCESS) if (SHGetValueW(hkPropSheetHandlers, szHandler, NULL, NULL, szClsidHandler, &dwClsidSize) == ERROR_SUCCESS)