advapi32: Use strict prototypes in the VTableProvStruc definition.

This commit is contained in:
Alexandre Julliard 2009-10-07 13:31:12 +02:00
parent 6d416e6934
commit a54bd70bac
2 changed files with 11 additions and 9 deletions

View File

@ -182,12 +182,9 @@ static BOOL CALLBACK CRYPT_VerifyImage(LPCSTR lpszImage, BYTE* pData)
return TRUE;
}
static BOOL CALLBACK CRYPT_ReturnhWnd(HWND *phWnd)
static void CALLBACK CRYPT_ReturnhWnd(HWND *phWnd)
{
if (!phWnd)
return FALSE;
*phWnd = crypt_hWindow;
return TRUE;
if (phWnd) *phWnd = crypt_hWindow;
}
#define CRYPT_GetProvFunc(name) \
@ -242,8 +239,8 @@ static PCRYPTPROV CRYPT_LoadProvider(PCWSTR pImage)
* Does it need memory allocation?
*/
provider->pVTable->Version = 3;
provider->pVTable->pFuncVerifyImage = (FARPROC)CRYPT_VerifyImage;
provider->pVTable->pFuncReturnhWnd = (FARPROC)CRYPT_ReturnhWnd;
provider->pVTable->FuncVerifyImage = CRYPT_VerifyImage;
provider->pVTable->FuncReturnhWnd = CRYPT_ReturnhWnd;
provider->pVTable->dwProvType = 0;
provider->pVTable->pbContextInfo = NULL;
provider->pVTable->cbContextInfo = 0;

View File

@ -680,8 +680,13 @@ typedef struct _CRYPT_SMIME_CAPABILITIES {
typedef struct _VTableProvStruc {
DWORD Version;
FARPROC pFuncVerifyImage;
FARPROC pFuncReturnhWnd;
#ifdef WINE_STRICT_PROTOTYPES
BOOL (WINAPI *FuncVerifyImage)(LPCSTR,BYTE*);
void (WINAPI *FuncReturnhWnd)(HWND*);
#else
FARPROC FuncVerifyImage;
FARPROC FuncReturnhWnd;
#endif
DWORD dwProvType;
BYTE *pbContextInfo;
DWORD cbContextInfo;