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
c51bf452
Commit
c51bf452
authored
Jan 06, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Open the revocation cache file in binary mode.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73ee5381
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+2
-2
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
c51bf452
...
...
@@ -1578,7 +1578,7 @@ static BOOL find_cached_revocation_status(const CRYPT_INTEGER_BLOB *serial,
FILE
*
file
;
int
len
;
if
(
!
(
file
=
open_cached_revocation_file
(
serial
,
L"r"
,
_SH_DENYWR
)))
if
(
!
(
file
=
open_cached_revocation_file
(
serial
,
L"r
b
"
,
_SH_DENYWR
)))
return
FALSE
;
if
((
len
=
fread
(
buffer
,
1
,
sizeof
(
buffer
),
file
))
!=
sizeof
(
buffer
)
...
...
@@ -1626,7 +1626,7 @@ static void cache_revocation_status(const CRYPT_INTEGER_BLOB *serial,
{
FILE
*
file
;
if
(
!
(
file
=
open_cached_revocation_file
(
serial
,
L"w"
,
_SH_DENYRW
)))
if
(
!
(
file
=
open_cached_revocation_file
(
serial
,
L"w
b
"
,
_SH_DENYRW
)))
return
;
fwrite
(
revocation_cache_signature
,
1
,
sizeof
(
revocation_cache_signature
),
file
);
fwrite
(
time
,
sizeof
(
*
time
),
1
,
file
);
...
...
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