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
74dba4e6
Commit
74dba4e6
authored
Apr 14, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Apr 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32/tests: Fix GetUserNameEx() tests.
parent
d31bb3f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
secur32.c
dlls/secur32/tests/secur32.c
+22
-16
No files found.
dlls/secur32/tests/secur32.c
View file @
74dba4e6
...
@@ -107,14 +107,13 @@ static void testGetUserNameExA(void)
...
@@ -107,14 +107,13 @@ static void testGetUserNameExA(void)
size
=
sizeof
(
name
);
size
=
sizeof
(
name
);
ZeroMemory
(
name
,
sizeof
(
name
));
ZeroMemory
(
name
,
sizeof
(
name
));
rc
=
pGetUserNameExA
(
formats
[
i
],
name
,
&
size
);
rc
=
pGetUserNameExA
(
formats
[
i
],
name
,
&
size
);
ok
(
rc
||
((
formats
[
i
]
==
NameUnknown
)
&&
ok
(
rc
||
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
formats
[
i
]
==
NameUnknown
&&
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
GetLastError
()
==
ERROR_NO_SUCH_USER
)
||
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
)
||
GetLastError
()
==
ERROR_NONE_MAPPED
||
(
GetLastError
()
==
ERROR_NO_SUCH_USER
)
||
broken
(
formats
[
i
]
==
NameDnsDomain
&&
(
GetLastError
()
==
ERROR_NONE_MAPPED
)
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
),
(
GetLastError
()
==
ERROR_ACCESS_DENIED
),
"GetUserNameExW(%d) failed: %d
\n
"
,
"GetUserNameExA(%d) failed: %d
\n
"
,
formats
[
i
],
GetLastError
());
formats
[
i
],
GetLastError
());
}
}
...
@@ -155,13 +154,12 @@ static void testGetUserNameExW(void)
...
@@ -155,13 +154,12 @@ static void testGetUserNameExW(void)
size
=
sizeof
(
nameW
);
size
=
sizeof
(
nameW
);
ZeroMemory
(
nameW
,
sizeof
(
nameW
));
ZeroMemory
(
nameW
,
sizeof
(
nameW
));
rc
=
pGetUserNameExW
(
formats
[
i
],
nameW
,
&
size
);
rc
=
pGetUserNameExW
(
formats
[
i
],
nameW
,
&
size
);
ok
(
rc
||
((
formats
[
i
]
==
NameUnknown
)
&&
ok
(
rc
||
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
formats
[
i
]
==
NameUnknown
&&
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
GetLastError
()
==
ERROR_NO_SUCH_USER
)
||
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
)
||
GetLastError
()
==
ERROR_NONE_MAPPED
||
(
GetLastError
()
==
ERROR_NO_SUCH_USER
)
||
broken
(
formats
[
i
]
==
NameDnsDomain
&&
(
GetLastError
()
==
ERROR_NONE_MAPPED
)
||
GetLastError
()
==
ERROR_INVALID_PARAMETER
),
(
GetLastError
()
==
ERROR_ACCESS_DENIED
),
"GetUserNameExW(%d) failed: %d
\n
"
,
"GetUserNameExW(%d) failed: %d
\n
"
,
formats
[
i
],
GetLastError
());
formats
[
i
],
GetLastError
());
}
}
...
@@ -212,7 +210,7 @@ static void test_InitSecurityInterface(void)
...
@@ -212,7 +210,7 @@ static void test_InitSecurityInterface(void)
if
(
!
pInitSecurityInterfaceW
)
if
(
!
pInitSecurityInterfaceW
)
{
{
skip
(
"InitSecurityInterfaceW not exported by secur32.dll
\n
"
);
win_
skip
(
"InitSecurityInterfaceW not exported by secur32.dll
\n
"
);
return
;
return
;
}
}
...
@@ -242,15 +240,23 @@ START_TEST(secur32)
...
@@ -242,15 +240,23 @@ START_TEST(secur32)
if
(
pGetComputerObjectNameA
)
if
(
pGetComputerObjectNameA
)
testGetComputerObjectNameA
();
testGetComputerObjectNameA
();
else
win_skip
(
"GetComputerObjectNameA not exported by secur32.dll
\n
"
);
if
(
pGetComputerObjectNameW
)
if
(
pGetComputerObjectNameW
)
testGetComputerObjectNameW
();
testGetComputerObjectNameW
();
else
win_skip
(
"GetComputerObjectNameW not exported by secur32.dll
\n
"
);
if
(
pGetUserNameExA
)
if
(
pGetUserNameExA
)
testGetUserNameExA
();
testGetUserNameExA
();
else
win_skip
(
"GetUserNameExA not exported by secur32.dll
\n
"
);
if
(
pGetUserNameExW
)
if
(
pGetUserNameExW
)
testGetUserNameExW
();
testGetUserNameExW
();
else
win_skip
(
"GetUserNameExW not exported by secur32.dll
\n
"
);
test_InitSecurityInterface
();
test_InitSecurityInterface
();
...
...
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