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
2951007d
Commit
2951007d
authored
Feb 03, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Make sure to use return value (LLVM/Clang).
parent
a1205c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
crypt_lmhash.c
dlls/advapi32/tests/crypt_lmhash.c
+4
-6
No files found.
dlls/advapi32/tests/crypt_lmhash.c
View file @
2951007d
...
...
@@ -211,6 +211,7 @@ static void test_SystemFunction003(void)
memset
(
output
,
0
,
sizeof
output
);
r
=
pSystemFunction002
(
data
,
key
,
output
);
ok
(
r
==
STATUS_SUCCESS
,
"function failed
\n
"
);
ok
(
!
memcmp
(
exp2
,
output
,
sizeof
output
),
"decrypted message wrong
\n
"
);
}
...
...
@@ -284,16 +285,19 @@ static void test_SystemFunction004(void)
memset
(
output
,
0
,
sizeof
output
);
r
=
pSystemFunction002
(
out
.
Buffer
,
key
.
Buffer
,
output
);
ok
(
r
==
STATUS_SUCCESS
,
"function failed
\n
"
);
ok
(((
unsigned
int
*
)
output
)[
0
]
==
in
.
Length
,
"crypted length wrong
\n
"
);
ok
(((
unsigned
int
*
)
output
)[
1
]
==
1
,
"crypted value wrong
\n
"
);
memset
(
output
,
0
,
sizeof
output
);
r
=
pSystemFunction002
(
out
.
Buffer
+
8
,
key
.
Buffer
,
output
);
ok
(
r
==
STATUS_SUCCESS
,
"function failed
\n
"
);
ok
(
!
memcmp
(
output
,
inbuf
,
sizeof
output
),
"crypted data wrong
\n
"
);
memset
(
output
,
0
,
sizeof
output
);
r
=
pSystemFunction002
(
out
.
Buffer
+
16
,
key
.
Buffer
,
output
);
ok
(
r
==
STATUS_SUCCESS
,
"function failed
\n
"
);
ok
(
!
memcmp
(
output
,
inbuf
,
sizeof
output
),
"crypted data wrong
\n
"
);
}
...
...
@@ -496,12 +500,6 @@ static void test_memcmpfunc(memcmpfunc fn)
return
;
}
if
(
0
)
{
/* crashes */
r
=
fn
(
NULL
,
NULL
);
}
memset
(
arg1
,
0
,
sizeof
arg1
);
memset
(
arg2
,
0
,
sizeof
arg2
);
arg1
[
0x10
]
=
1
;
...
...
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