dxdiagn: Use FAILED instead of !SUCCEEDED.
This commit is contained in:
parent
15e5f6844a
commit
7fe70f2c2b
@ -150,7 +150,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER if
|
|||||||
while (NULL != cur) {
|
while (NULL != cur) {
|
||||||
*cur = '\0'; /* cut tmp string to '.' */
|
*cur = '\0'; /* cut tmp string to '.' */
|
||||||
hr = IDxDiagContainerImpl_GetChildContainerInternal(pContainer, tmp, &pContainer);
|
hr = IDxDiagContainerImpl_GetChildContainerInternal(pContainer, tmp, &pContainer);
|
||||||
if (!SUCCEEDED(hr) || NULL == pContainer)
|
if (FAILED(hr) || NULL == pContainer)
|
||||||
goto on_error;
|
goto on_error;
|
||||||
cur++; /* go after '.' (just replaced by \0) */
|
cur++; /* go after '.' (just replaced by \0) */
|
||||||
tmp = cur;
|
tmp = cur;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user