Re: setupapi: Implement installing catalog files
Maarten Lankhorst <maarten(a)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... -- Alexandre Julliard julliard(a)winehq.org
Hi AJ, Alexandre Julliard schreef:
Maarten Lankhorst <maarten(a)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.
Maarten Lankhorst <maarten(a)codeweavers.com> writes:
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.
Actually you probably don't want to free the library at all. If there are multiple files to install loading/unloading wintrust for each file would be expensive. -- Alexandre Julliard julliard(a)winehq.org
participants (2)
-
Alexandre Julliard -
Maarten Lankhorst