On Tuesday 09 November 2004 20:21, Alexandre Julliard wrote:
Michael Jung mjung@iss.tu-darmstadt.de writes:
Changelog: CPAcquireContext: Set last error to ERROR_SUCCESS in case of success.
There are very few functions that set last error on success, do you have a test demonstrating that Windows does it in this case?
The test is in dlls/advapi32/tests/crypt.c, line 117. It passes at least on WinXP SP2. What I don't know is if this should be set in advapi32/CryptAcquireContext or in rsaenh/CPAcquireContext. However, setting it in rsaenh can do no harm.
Greetings, Michael