CPAcquireContext: Set last error to ERROR_SUCCESS in case of success.

This commit is contained in:
Michael Jung 2004-11-10 01:30:20 +00:00 committed by Alexandre Julliard
parent 7ff12568b8
commit 5f06380b40

View File

@ -938,6 +938,8 @@ BOOL WINAPI RSAENH_CPAcquireContext(HCRYPTPROV *phProv, LPSTR pszContainer,
TRACE("(phProv=%p, pszContainer=%s, dwFlags=%08lx, pVTable=%p)\n", phProv,
debugstr_a(pszContainer), dwFlags, pVTable);
SetLastError(ERROR_SUCCESS);
if (!load_lib()) return FALSE;
if (pszContainer ? strlen(pszContainer) : 0)