setupapi: Implement installing catalog files

Maarten Lankhorst maarten at codeweavers.com
Tue Oct 21 06:11:09 CDT 2008


Hi AJ,

Alexandre Julliard schreef:
> Maarten Lankhorst <maarten at 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.





More information about the wine-devel mailing list