Sergey Isakov : msi/tests: Simplify the logic in an if condition.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 27 08:20:49 CST 2015


Module: wine
Branch: master
Commit: 88a96478c38f3ec7acb4dfd0195d5ba1419aaaa0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=88a96478c38f3ec7acb4dfd0195d5ba1419aaaa0

Author: Sergey Isakov <isakov-sl at bk.ru>
Date:   Fri Nov 27 07:11:59 2015 +0300

msi/tests: Simplify the logic in an if condition.

Signed-off-by: Sergey Isakov <isakov-sl at bk.ru>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/tests/automation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c
index a1df3f1..d02e9a2 100644
--- a/dlls/msi/tests/automation.c
+++ b/dlls/msi/tests/automation.c
@@ -878,7 +878,7 @@ static HRESULT invoke(IDispatch *pDispatch, LPCSTR szName, WORD wFlags, DISPPARA
     hr = IDispatch_GetIDsOfNames(pDispatch, &IID_NULL, &name, 1, LOCALE_USER_DEFAULT, &dispid);
     HeapFree(GetProcessHeap(), 0, name);
     ok(hr == S_OK, "IDispatch::GetIDsOfNames returned 0x%08x\n", hr);
-    if (!hr == S_OK) return hr;
+    if (hr != S_OK) return hr;
 
     memset(&excepinfo, 0, sizeof(excepinfo));
     hr = IDispatch_Invoke(pDispatch, dispid, &IID_NULL, LOCALE_NEUTRAL, wFlags, pDispParams, pVarResult, &excepinfo, NULL);




More information about the wine-cvs mailing list