Hi AJ,
Alexandre Julliard schreef:
Maarten Lankhorst maarten@codeweavers.com writes:
wintrust = LoadLibraryW(wintrust_dll);
pCryptCATAdminAcquireContext = (void *)GetProcAddress(wintrust, "CryptCATAdminAcquireContext");
pCryptCATAdminAddCatalog = (void *)GetProcAddress(wintrust, "CryptCATAdminAddCatalog");
pCryptCATAdminReleaseCatalogContext = (void *)GetProcAddress(wintrust, "CryptCATAdminReleaseCatalogContext");
pCryptCATAdminReleaseContext = (void *)GetProcAddress(wintrust, "CryptCATAdminReleaseContext");
FreeLibrary(wintrust);
I doubt that calling functions in an unloaded library is going to give good results...
Oops, thanks for catching that. Apparantly it somehow didn't complete crash for me. In the error paths I also found that I forgot to call the cleanup functions, so I'll send a revised patch.
Cheers, Maarten.