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
91f2a4d6
Commit
91f2a4d6
authored
Sep 18, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix alignment for 64-bit systems.
parent
71b5ba03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
msg.c
dlls/crypt32/msg.c
+10
-10
No files found.
dlls/crypt32/msg.c
View file @
91f2a4d6
...
...
@@ -1756,8 +1756,8 @@ static inline void CRYPT_CopyAttributes(CRYPT_ATTRIBUTES *out,
{
DWORD
i
;
if
((
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
))
*
nextData
+=
(
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
);
if
((
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
_PTR
))
*
nextData
+=
(
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
_PTR
);
out
->
rgAttr
=
(
CRYPT_ATTRIBUTE
*
)
*
nextData
;
*
nextData
+=
in
->
cAttr
*
sizeof
(
CRYPT_ATTRIBUTE
);
for
(
i
=
0
;
i
<
in
->
cAttr
;
i
++
)
...
...
@@ -1773,8 +1773,8 @@ static inline void CRYPT_CopyAttributes(CRYPT_ATTRIBUTES *out,
DWORD
j
;
out
->
rgAttr
[
i
].
cValue
=
in
->
rgAttr
[
i
].
cValue
;
if
((
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
))
*
nextData
+=
(
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
);
if
((
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
_PTR
))
*
nextData
+=
(
*
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
_PTR
);
out
->
rgAttr
[
i
].
rgValue
=
(
PCRYPT_DATA_BLOB
)
*
nextData
;
for
(
j
=
0
;
j
<
in
->
rgAttr
[
i
].
cValue
;
j
++
)
CRYPT_CopyBlob
(
&
out
->
rgAttr
[
i
].
rgValue
[
j
],
...
...
@@ -1793,8 +1793,8 @@ static DWORD CRYPT_SizeOfAttributes(const CRYPT_ATTRIBUTES *attr)
if
(
attr
->
rgAttr
[
i
].
pszObjId
)
size
+=
strlen
(
attr
->
rgAttr
[
i
].
pszObjId
)
+
1
;
/* align pointer */
if
(
size
%
sizeof
(
DWORD
))
size
+=
size
%
sizeof
(
DWORD
);
if
(
size
%
sizeof
(
DWORD
_PTR
))
size
+=
size
%
sizeof
(
DWORD
_PTR
);
size
+=
attr
->
rgAttr
[
i
].
cValue
*
sizeof
(
CRYPT_DATA_BLOB
);
for
(
j
=
0
;
j
<
attr
->
rgAttr
[
i
].
cValue
;
j
++
)
size
+=
attr
->
rgAttr
[
i
].
rgValue
[
j
].
cbData
;
...
...
@@ -1818,8 +1818,8 @@ static BOOL CRYPT_CopySignerInfo(void *pvData, DWORD *pcbData,
size
+=
in
->
HashEncryptionAlgorithm
.
Parameters
.
cbData
;
size
+=
in
->
EncryptedHash
.
cbData
;
/* align pointer */
if
(
size
%
sizeof
(
DWORD
))
size
+=
size
%
sizeof
(
DWORD
);
if
(
size
%
sizeof
(
DWORD
_PTR
))
size
+=
size
%
sizeof
(
DWORD
_PTR
);
size
+=
CRYPT_SizeOfAttributes
(
&
in
->
AuthAttrs
);
size
+=
CRYPT_SizeOfAttributes
(
&
in
->
UnauthAttrs
);
if
(
!
pvData
)
...
...
@@ -1847,8 +1847,8 @@ static BOOL CRYPT_CopySignerInfo(void *pvData, DWORD *pcbData,
&
in
->
HashEncryptionAlgorithm
,
&
nextData
);
CRYPT_CopyBlob
(
&
out
->
EncryptedHash
,
&
in
->
EncryptedHash
,
&
nextData
);
/* align pointer */
if
((
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
))
nextData
+=
(
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
);
if
((
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
_PTR
))
nextData
+=
(
nextData
-
(
LPBYTE
)
0
)
%
sizeof
(
DWORD
_PTR
);
CRYPT_CopyAttributes
(
&
out
->
AuthAttrs
,
&
in
->
AuthAttrs
,
&
nextData
);
CRYPT_CopyAttributes
(
&
out
->
UnauthAttrs
,
&
in
->
UnauthAttrs
,
&
nextData
);
ret
=
TRUE
;
...
...
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