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
a06caa0e
Commit
a06caa0e
authored
Dec 03, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove unnecessary casts.
parent
750a5601
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
decode.c
dlls/crypt32/decode.c
+1
-1
serialize.c
dlls/crypt32/serialize.c
+3
-3
No files found.
dlls/crypt32/decode.c
View file @
a06caa0e
...
...
@@ -715,7 +715,7 @@ static BOOL CRYPT_AsnDecodeArray(const struct AsnArrayDescriptor *arrayDesc,
else
array
->
rgItems
=
(
BYTE
*
)
array
+
sizeof
(
struct
GenericArray
);
nextData
=
(
BYTE
*
)
array
->
rgItems
+
nextData
=
array
->
rgItems
+
array
->
cItems
*
arrayDesc
->
itemSize
;
for
(
i
=
0
,
ptr
=
pbEncoded
+
1
+
lenBytes
;
ret
&&
i
<
cItems
&&
ptr
-
pbEncoded
-
1
-
lenBytes
<
...
...
dlls/crypt32/serialize.c
View file @
a06caa0e
...
...
@@ -734,7 +734,7 @@ static BOOL CRYPT_SavePKCSToFile(HCERTSTORE store,
{
ret
=
CRYPT_SavePKCSToMem
(
store
,
dwMsgAndCertEncodingType
,
&
blob
);
if
(
ret
)
ret
=
WriteFile
(
(
HANDLE
)
handle
,
blob
.
pbData
,
blob
.
cbData
,
ret
=
WriteFile
(
handle
,
blob
.
pbData
,
blob
.
cbData
,
&
blob
.
cbData
,
NULL
);
}
else
...
...
@@ -750,7 +750,7 @@ static BOOL CRYPT_SavePKCSToFile(HCERTSTORE store,
static
BOOL
CRYPT_SaveSerializedToFile
(
HCERTSTORE
store
,
DWORD
dwMsgAndCertEncodingType
,
void
*
handle
)
{
return
CRYPT_WriteSerializedStoreToFile
(
(
HANDLE
)
handle
,
store
);
return
CRYPT_WriteSerializedStoreToFile
(
handle
,
store
);
}
struct
MemWrittenTracker
...
...
@@ -847,7 +847,7 @@ BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
switch
(
dwSaveTo
)
{
case
CERT_STORE_SAVE_TO_FILE
:
handle
=
(
HANDLE
)
pvSaveToPara
;
handle
=
pvSaveToPara
;
saveFunc
=
dwSaveAs
==
CERT_STORE_SAVE_AS_STORE
?
CRYPT_SaveSerializedToFile
:
CRYPT_SavePKCSToFile
;
break
;
...
...
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