Module: wine Branch: master Commit: 7fe70f2c2b201f311c56b66f9d1c3d037a7031e6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7fe70f2c2b201f311c56b66f9d...
Author: Michael Stefaniuc mstefani@redhat.de Date: Wed Oct 8 01:36:09 2008 +0200
dxdiagn: Use FAILED instead of !SUCCEEDED.
---
dlls/dxdiagn/container.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dxdiagn/container.c b/dlls/dxdiagn/container.c index c4278b1..23245ae 100644 --- a/dlls/dxdiagn/container.c +++ b/dlls/dxdiagn/container.c @@ -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;