CPAcquireContext: Set last error to ERROR_SUCCESS in case of success.
This commit is contained in:
parent
7ff12568b8
commit
5f06380b40
|
@ -938,6 +938,8 @@ BOOL WINAPI RSAENH_CPAcquireContext(HCRYPTPROV *phProv, LPSTR pszContainer,
|
||||||
TRACE("(phProv=%p, pszContainer=%s, dwFlags=%08lx, pVTable=%p)\n", phProv,
|
TRACE("(phProv=%p, pszContainer=%s, dwFlags=%08lx, pVTable=%p)\n", phProv,
|
||||||
debugstr_a(pszContainer), dwFlags, pVTable);
|
debugstr_a(pszContainer), dwFlags, pVTable);
|
||||||
|
|
||||||
|
SetLastError(ERROR_SUCCESS);
|
||||||
|
|
||||||
if (!load_lib()) return FALSE;
|
if (!load_lib()) return FALSE;
|
||||||
|
|
||||||
if (pszContainer ? strlen(pszContainer) : 0)
|
if (pszContainer ? strlen(pszContainer) : 0)
|
||||||
|
|
Loading…
Reference in New Issue