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

This commit is contained in:
Juan Lang 2007-10-17 09:34:14 -07:00 committed by Alexandre Julliard
parent 46ead27165
commit 63e1ac4eac
1 changed files with 5 additions and 3 deletions

View File

@ -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);