Commit a54bd70b authored by Alexandre Julliard's avatar Alexandre Julliard

advapi32: Use strict prototypes in the VTableProvStruc definition.

parent 6d416e69
...@@ -182,12 +182,9 @@ static BOOL CALLBACK CRYPT_VerifyImage(LPCSTR lpszImage, BYTE* pData) ...@@ -182,12 +182,9 @@ static BOOL CALLBACK CRYPT_VerifyImage(LPCSTR lpszImage, BYTE* pData)
return TRUE; return TRUE;
} }
static BOOL CALLBACK CRYPT_ReturnhWnd(HWND *phWnd) static void CALLBACK CRYPT_ReturnhWnd(HWND *phWnd)
{ {
if (!phWnd) if (phWnd) *phWnd = crypt_hWindow;
return FALSE;
*phWnd = crypt_hWindow;
return TRUE;
} }
#define CRYPT_GetProvFunc(name) \ #define CRYPT_GetProvFunc(name) \
...@@ -242,8 +239,8 @@ static PCRYPTPROV CRYPT_LoadProvider(PCWSTR pImage) ...@@ -242,8 +239,8 @@ static PCRYPTPROV CRYPT_LoadProvider(PCWSTR pImage)
* Does it need memory allocation? * Does it need memory allocation?
*/ */
provider->pVTable->Version = 3; provider->pVTable->Version = 3;
provider->pVTable->pFuncVerifyImage = (FARPROC)CRYPT_VerifyImage; provider->pVTable->FuncVerifyImage = CRYPT_VerifyImage;
provider->pVTable->pFuncReturnhWnd = (FARPROC)CRYPT_ReturnhWnd; provider->pVTable->FuncReturnhWnd = CRYPT_ReturnhWnd;
provider->pVTable->dwProvType = 0; provider->pVTable->dwProvType = 0;
provider->pVTable->pbContextInfo = NULL; provider->pVTable->pbContextInfo = NULL;
provider->pVTable->cbContextInfo = 0; provider->pVTable->cbContextInfo = 0;
......
...@@ -680,8 +680,13 @@ typedef struct _CRYPT_SMIME_CAPABILITIES { ...@@ -680,8 +680,13 @@ typedef struct _CRYPT_SMIME_CAPABILITIES {
typedef struct _VTableProvStruc { typedef struct _VTableProvStruc {
DWORD Version; DWORD Version;
FARPROC pFuncVerifyImage; #ifdef WINE_STRICT_PROTOTYPES
FARPROC pFuncReturnhWnd; BOOL (WINAPI *FuncVerifyImage)(LPCSTR,BYTE*);
void (WINAPI *FuncReturnhWnd)(HWND*);
#else
FARPROC FuncVerifyImage;
FARPROC FuncReturnhWnd;
#endif
DWORD dwProvType; DWORD dwProvType;
BYTE *pbContextInfo; BYTE *pbContextInfo;
DWORD cbContextInfo; DWORD cbContextInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment