Commit 63e1ac4e authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

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

parent 46ead271
...@@ -208,7 +208,7 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet, ...@@ -208,7 +208,7 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet,
else else
{ {
/* No value, return an empty list */ /* No value, return an empty list */
if (*pcchDllList) if (pwszDllList && *pcchDllList)
*pwszDllList = '\0'; *pwszDllList = '\0';
*pcchDllList = 1; *pcchDllList = 1;
} }
...@@ -216,8 +216,10 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet, ...@@ -216,8 +216,10 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet,
} }
else else
{ {
SetLastError(rc); /* No value, return an empty list */
ret = FALSE; if (pwszDllList && *pcchDllList)
*pwszDllList = '\0';
*pcchDllList = 1;
} }
CryptMemFree(keyName); CryptMemFree(keyName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment