Michael Stefaniuc : msi/tests: Remove redundant if check (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Nov 26 14:13:54 CST 2014


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Nov 26 12:08:19 2014 +0100

msi/tests: Remove redundant if check (PVS-Studio).

---

 dlls/msi/tests/automation.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c
index beed6fd..016b1a2 100644
--- a/dlls/msi/tests/automation.c
+++ b/dlls/msi/tests/automation.c
@@ -1935,7 +1935,7 @@ static void test_Session(IDispatch *pSession)
 
     hr = Session_ModePut(pSession, MSIRUNMODE_REBOOTNOW, TRUE);
     ok(hr == S_OK, "Session_ModePut failed, hresult 0x%08x\n", hr);
-    if (hr == DISP_E_EXCEPTION) ok_exception(hr, szModeFlag);
+    ok_exception(hr, szModeFlag);
 
     hr = Session_ModeGet(pSession, MSIRUNMODE_REBOOTNOW, &bool);
     ok(hr == S_OK, "Session_ModeGet failed, hresult 0x%08x\n", hr);
@@ -1943,7 +1943,7 @@ static void test_Session(IDispatch *pSession)
 
     hr = Session_ModePut(pSession, MSIRUNMODE_REBOOTNOW, FALSE);  /* set it again so we don't reboot */
     ok(hr == S_OK, "Session_ModePut failed, hresult 0x%08x\n", hr);
-    if (hr == DISP_E_EXCEPTION) ok_exception(hr, szModeFlag);
+    ok_exception(hr, szModeFlag);
 
     hr = Session_ModePut(pSession, MSIRUNMODE_MAINTENANCE, TRUE);
     ok(hr == DISP_E_EXCEPTION, "Session_ModePut failed, hresult 0x%08x\n", hr);




More information about the wine-cvs mailing list