Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a54bd70b
Commit
a54bd70b
authored
Oct 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Use strict prototypes in the VTableProvStruc definition.
parent
6d416e69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
crypt.c
dlls/advapi32/crypt.c
+4
-7
wincrypt.h
include/wincrypt.h
+7
-2
No files found.
dlls/advapi32/crypt.c
View file @
a54bd70b
...
...
@@ -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
;
...
...
include/wincrypt.h
View file @
a54bd70b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment