Juan Lang : crypt32: Always return an empty list on failure from CryptGetDefaultOIDDllList.

Alexandre Julliard julliard at winehq.org
Thu Oct 18 07:59:38 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Oct 17 09:34:14 2007 -0700

crypt32: Always return an empty list on failure from CryptGetDefaultOIDDllList.

---

 dlls/crypt32/oid.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c
index f4d254d..ccc4f68 100644
--- a/dlls/crypt32/oid.c
+++ b/dlls/crypt32/oid.c
@@ -208,7 +208,7 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet,
         else
         {
             /* No value, return an empty list */
-            if (*pcchDllList)
+            if (pwszDllList && *pcchDllList)
                 *pwszDllList = '\0';
             *pcchDllList = 1;
         }
@@ -216,8 +216,10 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet,
     }
     else
     {
-        SetLastError(rc);
-        ret = FALSE;
+        /* No value, return an empty list */
+        if (pwszDllList && *pcchDllList)
+            *pwszDllList = '\0';
+        *pcchDllList = 1;
     }
     CryptMemFree(keyName);
 




More information about the wine-cvs mailing list