Paul Vriens : rsaenh/tests: Don't check result twice (Coccinelle).

Alexandre Julliard julliard at winehq.org
Thu Jan 14 11:33:35 CST 2010


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Jan 12 13:42:51 2010 +0100

rsaenh/tests: Don't check result twice (Coccinelle).

---

 dlls/rsaenh/tests/rsaenh.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c
index 83ec872..94da116 100644
--- a/dlls/rsaenh/tests/rsaenh.c
+++ b/dlls/rsaenh/tests/rsaenh.c
@@ -275,7 +275,6 @@ static BOOL derive_key(ALG_ID aiAlgid, HCRYPTKEY *phKey, DWORD len)
         return FALSE;
     } 
     ok(result, "%08x\n", GetLastError());
-    if (!result) return FALSE;
     result = CryptHashData(hHash, pbData, sizeof(pbData), 0);
     ok(result, "%08x\n", GetLastError());
     if (!result) return FALSE;




More information about the wine-cvs mailing list