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
dc63bf2d
Commit
dc63bf2d
authored
Jul 09, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jul 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Pass function pointers to CryptMsgBase_Init rather than rely on callers…
crypt32: Pass function pointers to CryptMsgBase_Init rather than rely on callers to initialize them.
parent
6d5eee08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
msg.c
dlls/crypt32/msg.c
+7
-5
No files found.
dlls/crypt32/msg.c
View file @
dc63bf2d
...
...
@@ -47,11 +47,15 @@ typedef struct _CryptMsgBase
}
CryptMsgBase
;
static
inline
void
CryptMsgBase_Init
(
CryptMsgBase
*
msg
,
DWORD
dwFlags
,
PCMSG_STREAM_INFO
pStreamInfo
)
PCMSG_STREAM_INFO
pStreamInfo
,
CryptMsgCloseFunc
close
,
CryptMsgGetParamFunc
get_param
,
CryptMsgUpdateFunc
update
)
{
msg
->
ref
=
1
;
msg
->
open_flags
=
dwFlags
;
msg
->
stream_info
=
pStreamInfo
;
msg
->
close
=
close
;
msg
->
get_param
=
get_param
;
msg
->
update
=
update
;
msg
->
finalized
=
FALSE
;
}
...
...
@@ -166,10 +170,8 @@ static HCRYPTMSG CDataEncodeMsg_Open(DWORD dwFlags, const void *pvMsgEncodeInfo,
msg
=
CryptMemAlloc
(
sizeof
(
CDataEncodeMsg
));
if
(
msg
)
{
CryptMsgBase_Init
((
CryptMsgBase
*
)
msg
,
dwFlags
,
pStreamInfo
);
msg
->
base
.
close
=
CDataEncodeMsg_Close
;
msg
->
base
.
update
=
CDataEncodeMsg_Update
;
msg
->
base
.
get_param
=
CDataEncodeMsg_GetParam
;
CryptMsgBase_Init
((
CryptMsgBase
*
)
msg
,
dwFlags
,
pStreamInfo
,
CDataEncodeMsg_Close
,
CDataEncodeMsg_GetParam
,
CDataEncodeMsg_Update
);
msg
->
bare_content_len
=
sizeof
(
empty_data_content
);
msg
->
bare_content
=
(
LPBYTE
)
empty_data_content
;
}
...
...
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