mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
advapi32: Use strict prototypes in the VTableProvStruc definition.
This commit is contained in:
parent
6d416e6934
commit
a54bd70bac
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user