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
b012ffba
Commit
b012ffba
authored
Dec 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use allocation function with the correct prototype in CMSG_CONTENT_ENCRYPT_INFO.
parent
33146079
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
msg.c
dlls/crypt32/msg.c
+13
-2
No files found.
dlls/crypt32/msg.c
View file @
b012ffba
...
...
@@ -1645,6 +1645,17 @@ static BOOL CRYPT_ExportEncryptedKey(CMSG_CONTENT_ENCRYPT_INFO *info, DWORD i,
return
ret
;
}
static
LPVOID
WINAPI
mem_alloc
(
size_t
size
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
}
static
VOID
WINAPI
mem_free
(
LPVOID
pv
)
{
HeapFree
(
GetProcessHeap
(),
0
,
pv
);
}
static
BOOL
CContentEncryptInfo_Construct
(
CMSG_CONTENT_ENCRYPT_INFO
*
info
,
const
CMSG_ENVELOPED_ENCODE_INFO_WITH_CMS
*
in
,
HCRYPTPROV
prov
)
{
...
...
@@ -1701,8 +1712,8 @@ static BOOL CContentEncryptInfo_Construct(CMSG_CONTENT_ENCRYPT_INFO *info,
else
ret
=
FALSE
;
}
info
->
pfnAlloc
=
CryptMemA
lloc
;
info
->
pfnFree
=
CryptMemF
ree
;
info
->
pfnAlloc
=
mem_a
lloc
;
info
->
pfnFree
=
mem_f
ree
;
return
ret
;
}
...
...
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