dxdiagn: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2008-10-08 01:36:09 +02:00 committed by Alexandre Julliard
parent 15e5f6844a
commit 7fe70f2c2b

View File

@ -150,7 +150,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER if
while (NULL != cur) {
*cur = '\0'; /* cut tmp string to '.' */
hr = IDxDiagContainerImpl_GetChildContainerInternal(pContainer, tmp, &pContainer);
if (!SUCCEEDED(hr) || NULL == pContainer)
if (FAILED(hr) || NULL == pContainer)
goto on_error;
cur++; /* go after '.' (just replaced by \0) */
tmp = cur;