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
473ad39d
Commit
473ad39d
authored
Jun 04, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Implement and test SystemFunction031.
parent
546b84c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
crypt_lmhash.c
dlls/advapi32/tests/crypt_lmhash.c
+18
-10
No files found.
dlls/advapi32/advapi32.spec
View file @
473ad39d
...
...
@@ -625,7 +625,7 @@
@ stub SystemFunction028
@ stub SystemFunction029
@ stdcall SystemFunction030(ptr ptr)
@ st
ub SystemFunction031
@ st
dcall SystemFunction031(ptr ptr) SystemFunction030
@ stdcall SystemFunction032(ptr ptr)
@ stub SystemFunction033
@ stub SystemFunction034
...
...
dlls/advapi32/tests/crypt_lmhash.c
View file @
473ad39d
...
...
@@ -79,7 +79,10 @@ descrypt pSystemFunction025;
descrypt
pSystemFunction026
;
descrypt
pSystemFunction027
;
fnSystemFunction030
pSystemFunction030
;
typedef
int
(
WINAPI
*
memcmpfunc
)(
unsigned
char
*
,
unsigned
char
*
);
memcmpfunc
pSystemFunction030
;
memcmpfunc
pSystemFunction031
;
fnSystemFunction032
pSystemFunction032
;
static
void
test_SystemFunction006
(
void
)
...
...
@@ -476,37 +479,40 @@ static void test_SystemFunction_dec32(descrypt func, int num)
ok
(
!
memcmp
(
output
,
des_plaintext
,
sizeof
des_plaintext
),
"plaintext wrong (%d)
\n
"
,
num
);
}
static
void
test_
SystemFunction030
(
void
)
static
void
test_
memcmpfunc
(
memcmpfunc
fn
)
{
unsigned
char
arg1
[
0x20
],
arg2
[
0x20
];
int
r
;
/* r = pSystemFunction030(NULL, NULL); - crashes */
if
(
!
fn
)
return
;
/* r = fn(NULL, NULL); - crashes */
memset
(
arg1
,
0
,
sizeof
arg1
);
memset
(
arg2
,
0
,
sizeof
arg2
);
arg1
[
0x10
]
=
1
;
r
=
pSystemFunction030
(
arg1
,
arg2
);
r
=
fn
(
arg1
,
arg2
);
ok
(
r
==
1
,
"wrong error code
\n
"
);
memset
(
arg1
,
1
,
sizeof
arg1
);
memset
(
arg2
,
1
,
sizeof
arg2
);
arg1
[
0x10
]
=
0
;
r
=
pSystemFunction030
(
arg1
,
arg2
);
r
=
fn
(
arg1
,
arg2
);
ok
(
r
==
1
,
"wrong error code
\n
"
);
memset
(
arg1
,
0
,
sizeof
arg1
);
memset
(
arg2
,
1
,
sizeof
arg2
);
r
=
pSystemFunction030
(
arg1
,
arg2
);
r
=
fn
(
arg1
,
arg2
);
ok
(
r
==
0
,
"wrong error code
\n
"
);
memset
(
arg1
,
1
,
sizeof
arg1
);
memset
(
arg2
,
0
,
sizeof
arg2
);
r
=
pSystemFunction030
(
arg1
,
arg2
);
r
=
fn
(
arg1
,
arg2
);
ok
(
r
==
0
,
"wrong error code
\n
"
);
}
...
...
@@ -590,9 +596,11 @@ START_TEST(crypt_lmhash)
test_SystemFunction_dec32
(
pSystemFunction025
,
25
);
test_SystemFunction_dec32
(
pSystemFunction027
,
27
);
pSystemFunction030
=
(
fnSystemFunction030
)
GetProcAddress
(
module
,
"SystemFunction030"
);
if
(
pSystemFunction030
)
test_SystemFunction030
();
pSystemFunction030
=
(
memcmpfunc
)
GetProcAddress
(
module
,
"SystemFunction030"
);
pSystemFunction031
=
(
memcmpfunc
)
GetProcAddress
(
module
,
"SystemFunction031"
);
test_memcmpfunc
(
pSystemFunction030
);
test_memcmpfunc
(
pSystemFunction031
);
pSystemFunction032
=
(
fnSystemFunction032
)
GetProcAddress
(
module
,
"SystemFunction032"
);
if
(
pSystemFunction032
)
...
...
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