Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3ffb4b1c
Commit
3ffb4b1c
authored
Jul 12, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Jul 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Detached hash messages don't contain the content, so don't make a copy of it.
parent
f83da5cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
msg.c
dlls/crypt32/msg.c
+4
-8
No files found.
dlls/crypt32/msg.c
View file @
3ffb4b1c
...
...
@@ -387,27 +387,23 @@ static BOOL CHashEncodeMsg_Update(HCRYPTMSG hCryptMsg, const BYTE *pbData,
{
if
(
fFinal
)
msg
->
base
.
finalized
=
TRUE
;
if
(
msg
->
base
.
streamed
)
if
(
msg
->
base
.
streamed
||
(
msg
->
base
.
open_flags
&
CMSG_DETACHED_FLAG
)
)
{
/* Doesn't do
anything
, as stream output is never called, and you
/* Doesn't do
much
, as stream output is never called, and you
* can't get the content.
*/
ret
=
CryptHashData
(
msg
->
hash
,
pbData
,
cbData
,
0
);
}
else
{
if
(
!
(
msg
->
base
.
open_flags
&
CMSG_DETACHED_FLAG
)
&&
!
fFinal
)
if
(
!
fFinal
)
SetLastError
(
CRYPT_E_MSG_ERROR
);
else
{
ret
=
CryptHashData
(
msg
->
hash
,
pbData
,
cbData
,
0
);
if
(
ret
)
{
if
(
msg
->
data
.
pbData
)
msg
->
data
.
pbData
=
CryptMemRealloc
(
msg
->
data
.
pbData
,
msg
->
data
.
cbData
+
cbData
);
else
msg
->
data
.
pbData
=
CryptMemAlloc
(
cbData
);
msg
->
data
.
pbData
=
CryptMemAlloc
(
cbData
);
if
(
msg
->
data
.
pbData
)
{
memcpy
(
msg
->
data
.
pbData
+
msg
->
data
.
cbData
,
pbData
,
...
...
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