setupapi: implement pSetupInstallCatalog
Alexandre Julliard
julliard at winehq.org
Wed Jan 28 07:30:51 CST 2009
Aric Stewart <aric at codeweavers.com> writes:
> + if (!CryptCATAdminAcquireContext(&admin,NULL,0))
> + {
> + ERR("Could not acquire security context\n");
> + return ERROR_GEN_FAILURE;
> + }
> + if (!(cat = CryptCATAdminAddCatalog(admin,catalog,basename,0)))
> + {
> + ERR("Could not add catalog\n");
> + CryptCATAdminReleaseContext(admin, 0);
> + return ERROR_GEN_FAILURE;
You should return proper error codes based on the result of the called
functions instead of a generic ERROR_GEN_FAILURE.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list