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
de0619e3
Commit
de0619e3
authored
Aug 26, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Aug 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fix secur32 test to pass on windows.
parent
f0085e63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
secur32.c
dlls/secur32/tests/secur32.c
+9
-2
No files found.
dlls/secur32/tests/secur32.c
View file @
de0619e3
...
@@ -51,7 +51,8 @@ static void testGetComputerObjectNameA(void)
...
@@ -51,7 +51,8 @@ static void testGetComputerObjectNameA(void)
rc
=
pGetComputerObjectNameA
(
formats
[
i
],
name
,
&
size
);
rc
=
pGetComputerObjectNameA
(
formats
[
i
],
name
,
&
size
);
ok
(
rc
||
((
formats
[
i
]
==
NameUnknown
)
&&
ok
(
rc
||
((
formats
[
i
]
==
NameUnknown
)
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
),
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
),
"GetComputerObjectNameA(%d) failed: %ld
\n
"
,
"GetComputerObjectNameA(%d) failed: %ld
\n
"
,
formats
[
i
],
GetLastError
());
formats
[
i
],
GetLastError
());
if
(
rc
)
if
(
rc
)
...
@@ -72,9 +73,15 @@ static void testGetComputerObjectNameW(void)
...
@@ -72,9 +73,15 @@ static void testGetComputerObjectNameW(void)
rc
=
pGetComputerObjectNameW
(
formats
[
i
],
nameW
,
&
size
);
rc
=
pGetComputerObjectNameW
(
formats
[
i
],
nameW
,
&
size
);
ok
(
rc
||
((
formats
[
i
]
==
NameUnknown
)
&&
ok
(
rc
||
((
formats
[
i
]
==
NameUnknown
)
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
))
||
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
),
(
GetLastError
()
==
ERROR_CANT_ACCESS_DOMAIN_INFO
)
||
(
GetLastError
()
==
ERROR_NO_SUCH_DOMAIN
),
"GetComputerObjectNameW(%d) failed: %ld
\n
"
,
"GetComputerObjectNameW(%d) failed: %ld
\n
"
,
formats
[
i
],
GetLastError
());
formats
[
i
],
GetLastError
());
if
(
rc
)
{
char
name
[
256
];
WideCharToMultiByte
(
CP_ACP
,
0
,
nameW
,
-
1
,
name
,
sizeof
(
name
),
NULL
,
NULL
);
trace
(
"GetComputerObjectNameW() returned %s
\n
"
,
name
);
}
}
}
}
}
...
...
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