Marcus Meissner : crypt32: Change salt allocation to handle errors ( Coverity 133).

Alexandre Julliard julliard at winehq.org
Fri May 8 08:06:27 CDT 2009


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Fri May  8 00:00:01 2009 +0200

crypt32: Change salt allocation to handle errors (Coverity 133).

---

 dlls/crypt32/protectdata.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/crypt32/protectdata.c b/dlls/crypt32/protectdata.c
index 401e820..e6ac16e 100644
--- a/dlls/crypt32/protectdata.c
+++ b/dlls/crypt32/protectdata.c
@@ -616,11 +616,9 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
             return FALSE;
         }
         pInfo->salt.cbData=CRYPT32_PROTECTDATA_SALT_LEN;
+        /* debug: show our salt */
+        TRACE_DATA_BLOB(&pInfo->salt);
     }
-
-    /* debug: show our salt */
-    TRACE_DATA_BLOB(&pInfo->salt);
-
     pInfo->cipher.cbData=0;
     pInfo->cipher.pbData=NULL;
 




More information about the wine-cvs mailing list