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
0b0621c8
Commit
0b0621c8
authored
Dec 17, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Open test file with share mode FILE_SHARE_READ.
parent
a6216ab9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
crypt.c
dlls/wintrust/tests/crypt.c
+5
-4
No files found.
dlls/wintrust/tests/crypt.c
View file @
0b0621c8
...
@@ -285,10 +285,11 @@ static void test_calchash(void)
...
@@ -285,10 +285,11 @@ static void test_calchash(void)
CloseHandle
(
file
);
CloseHandle
(
file
);
/* All OK, requesting the size of the hash */
/* All OK, requesting the size of the hash */
file
=
CreateFileA
(
selfname
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
file
=
CreateFileA
(
selfname
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"CreateFile failed %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
NULL
,
0
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
NULL
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
%u
\n
"
,
GetLastError
()
);
todo_wine
todo_wine
{
{
ok
(
hashsize
==
20
,
" Expected a hash size of 20, got %d
\n
"
,
hashsize
);
ok
(
hashsize
==
20
,
" Expected a hash size of 20, got %d
\n
"
,
hashsize
);
...
@@ -300,12 +301,12 @@ static void test_calchash(void)
...
@@ -300,12 +301,12 @@ static void test_calchash(void)
/* All OK, retrieve the hash
/* All OK, retrieve the hash
* Double the hash buffer to see what happens to the size parameter
* Double the hash buffer to see what happens to the size parameter
*/
*/
file
=
CreateFileA
(
selfname
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
file
=
CreateFileA
(
selfname
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
hashsize
*=
2
;
hashsize
*=
2
;
hash
=
HeapAlloc
(
GetProcessHeap
(),
0
,
hashsize
);
hash
=
HeapAlloc
(
GetProcessHeap
(),
0
,
hashsize
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
hash
,
0
);
ret
=
pCryptCATAdminCalcHashFromFileHandle
(
file
,
&
hashsize
,
hash
,
0
);
ok
(
ret
,
"Expected success
\n
"
);
ok
(
ret
,
"Expected success
%u
\n
"
,
GetLastError
()
);
todo_wine
todo_wine
{
{
ok
(
hashsize
==
20
,
" Expected a hash size of 20, got %d
\n
"
,
hashsize
);
ok
(
hashsize
==
20
,
" Expected a hash size of 20, got %d
\n
"
,
hashsize
);
...
...
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