Commit 0febf5fb authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Avoid unused variable warning.

parent ed4bc907
......@@ -98,7 +98,6 @@ BOOL WINAPI RSA_CPAcquireContext(HCRYPTPROV *phProv, LPSTR pszContainer,
DWORD dwFlags, PVTableProvStruc pVTable)
{
BOOL ret = FALSE;
RSA_CryptProv *cp;
TRACE("%p %s %08lx %p\n", phProv, debugstr_a(pszContainer),
dwFlags, pVTable);
......@@ -107,19 +106,20 @@ BOOL WINAPI RSA_CPAcquireContext(HCRYPTPROV *phProv, LPSTR pszContainer,
if( !load_libcrypto() )
return FALSE;
cp = HeapAlloc( GetProcessHeap(), 0, sizeof (RSA_CryptProv) );
if( !cp )
else
{
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
return FALSE;
}
cp->dwMagic = RSABASE_MAGIC;
RSA_CryptProv *cp = HeapAlloc( GetProcessHeap(), 0, sizeof (RSA_CryptProv) );
if( !cp )
{
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
return FALSE;
}
*phProv = (HCRYPTPROV) cp;
ret = TRUE;
cp->dwMagic = RSABASE_MAGIC;
*phProv = (HCRYPTPROV) cp;
ret = TRUE;
}
#endif
return ret;
......
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