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
20f6f612
Commit
20f6f612
authored
Sep 07, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Translate CRYPTCAT_OPEN_CREATENEW to CREATE_ALWAYS.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
699e0a55
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
crypt.c
dlls/wintrust/crypt.c
+1
-1
crypt.c
dlls/wintrust/tests/crypt.c
+1
-1
No files found.
dlls/wintrust/crypt.c
View file @
20f6f612
...
@@ -873,7 +873,7 @@ HANDLE WINAPI CryptCATOpen(WCHAR *filename, DWORD flags, HCRYPTPROV hProv,
...
@@ -873,7 +873,7 @@ HANDLE WINAPI CryptCATOpen(WCHAR *filename, DWORD flags, HCRYPTPROV hProv,
if
(
flags
==
CRYPTCAT_OPEN_EXISTING
)
if
(
flags
==
CRYPTCAT_OPEN_EXISTING
)
open_mode
=
OPEN_EXISTING
;
open_mode
=
OPEN_EXISTING
;
if
(
flags
&
CRYPTCAT_OPEN_CREATENEW
)
if
(
flags
&
CRYPTCAT_OPEN_CREATENEW
)
open_mode
=
CREATE_
NEW
;
open_mode
=
CREATE_
ALWAYS
;
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
open_mode
,
0
,
NULL
);
file
=
CreateFileW
(
filename
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
open_mode
,
0
,
NULL
);
if
(
file
==
INVALID_HANDLE_VALUE
)
return
INVALID_HANDLE_VALUE
;
if
(
file
==
INVALID_HANDLE_VALUE
)
return
INVALID_HANDLE_VALUE
;
...
...
dlls/wintrust/tests/crypt.c
View file @
20f6f612
...
@@ -451,7 +451,7 @@ static void test_CryptCATOpen(void)
...
@@ -451,7 +451,7 @@ static void test_CryptCATOpen(void)
file
=
_wfopen
(
filename
,
L"r"
);
file
=
_wfopen
(
filename
,
L"r"
);
ret
=
fread
(
buffer
,
1
,
sizeof
(
buffer
),
file
);
ret
=
fread
(
buffer
,
1
,
sizeof
(
buffer
),
file
);
if
(
flags
&
CRYPTCAT_OPEN_CREATENEW
)
if
(
flags
&
CRYPTCAT_OPEN_CREATENEW
)
todo_wine
ok
(
!
ret
,
"flags %#x: got %s
\n
"
,
flags
,
debugstr_an
(
buffer
,
ret
));
ok
(
!
ret
,
"flags %#x: got %s
\n
"
,
flags
,
debugstr_an
(
buffer
,
ret
));
else
else
ok
(
ret
==
9
&&
!
strncmp
(
buffer
,
"test text"
,
ret
),
"flags %#x: got %s
\n
"
,
flags
,
debugstr_an
(
buffer
,
ret
));
ok
(
ret
==
9
&&
!
strncmp
(
buffer
,
"test text"
,
ret
),
"flags %#x: got %s
\n
"
,
flags
,
debugstr_an
(
buffer
,
ret
));
fclose
(
file
);
fclose
(
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