Commit 7fe70f2c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dxdiagn: Use FAILED instead of !SUCCEEDED.

parent 15e5f684
...@@ -150,7 +150,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_GetChildContainer(PDXDIAGCONTAINER if ...@@ -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;
......
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