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,
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);
......
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