* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <config.h>
-
#include <stdarg.h>
#define NONAMELESSUNION
-#include <windef.h>
-#include <winbase.h>
-//#include "winerror.h"
-#include <winreg.h>
-//#include "guiddef.h"
-//#include "wintrust.h"
-#include <softpub.h>
-#include <mscat.h>
-#include <objbase.h>
-#include <winuser.h>
-#include <cryptdlg.h>
-#include <cryptuiapi.h>
-//#include "wintrust_priv.h"
-#include <wine/debug.h>
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "winreg.h"
+#include "guiddef.h"
+#include "wintrust.h"
+#include "softpub.h"
+#include "mscat.h"
+#include "objbase.h"
+#include "winuser.h"
+#include "cryptdlg.h"
+#include "cryptuiapi.h"
+#include "wintrust_priv.h"
+#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
HeapFree(GetProcessHeap(), 0, p);
}
-/***********************************************************************
- * DllMain (WINTRUST.@)
- */
-BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
-{
- switch(reason)
- {
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls( inst );
- break;
- }
- return TRUE;
-}
-
/***********************************************************************
* TrustIsCertificateSelfSigned (WINTRUST.@)
*/
goto done;
error:
- if (provData)
- {
- WINTRUST_Free(provData->padwTrustStepErrors);
- WINTRUST_Free(provData->u.pPDSip);
- WINTRUST_Free(provData->psPfns);
- WINTRUST_Free(provData);
- }
+ WINTRUST_Free(provData->padwTrustStepErrors);
+ WINTRUST_Free(provData->u.pPDSip);
+ WINTRUST_Free(provData->psPfns);
+ WINTRUST_Free(provData);
+
done:
TRACE("returning %08x\n", err);
return err;
goto done;
error:
- if (provData)
- {
- WINTRUST_Free(provData->padwTrustStepErrors);
- WINTRUST_Free(provData->u.pPDSip);
- WINTRUST_Free(provData->psPfns);
- WINTRUST_Free(provData);
- }
+ WINTRUST_Free(provData->padwTrustStepErrors);
+ WINTRUST_Free(provData->u.pPDSip);
+ WINTRUST_Free(provData->psPfns);
+ WINTRUST_Free(provData);
+
done:
TRACE("returning %08x\n", err);
return err;
TRACE("(%p %d)\n", pSgnr, idxCert);
- if (idxCert >= pSgnr->csCertChain || !pSgnr->pasCertChain)
+ if (!pSgnr || idxCert >= pSgnr->csCertChain || !pSgnr->pasCertChain)
return NULL;
cert = &pSgnr->pasCertChain[idxCert];
TRACE("returning %p\n", cert);