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
a8c44d9a
Commit
a8c44d9a
authored
Oct 09, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spoolss/tests: Fix a failure on Vista/W2K8.
parent
c0e4e2da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
spoolss.c
dlls/spoolss/tests/spoolss.c
+32
-3
No files found.
dlls/spoolss/tests/spoolss.c
View file @
a8c44d9a
...
...
@@ -120,13 +120,42 @@ static void test_BuildOtherNamesFromMachineName(void)
SetLastError
(
0xdeadbeef
);
res
=
pBuildOtherNamesFromMachineName
(
&
buffers
,
&
numentries
);
/* An array with
3 stringpointer is returned
:
/* An array with
a number of stringpointers is returned (minimum of 3)
:
entry_#0: "" (empty String)
entry_#1: <hostname> (this is the same as the computername)
entry_#2: <ip-address> (string with the ip-address of <hostname>)
1 entry per Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
As of Vista:
IPv6 fully disabled (lan interfaces, connections, tunnel interfaces and loopback interfaces)
entry_#0: "" (empty String)
entry_#1: <hostname> (this is the same as the computername)
1 entry per Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
entry_#x: "::1"
IPv6 partly disabled (lan interfaces, connections):
entry_#0: "" (empty String)
entry_#1: <hostname> (this is the same as the computername)
entry_#2: "::1"
1 entry per Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
IPv6 fully enabled but not on all lan interfaces:
entry_#0: "" (empty String)
entry_#1: <hostname> (this is the same as the computername)
1 entry per IPv6 enabled Ethernet adapter : <ip-address> (string with a Link-local IPv6 ip-address)
1 entry per IPv4 enabled Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
IPv6 fully enabled on all lan interfaces:
entry_#0: "" (empty String)
entry_#1: <hostname> (this is the same as the computername)
1 entry per IPv6 enabled Ethernet adapter : <ip-address> (string with a Link-local IPv6 ip-address)
entry_#x: <ip-address> Tunnel adapter (string with a Link-local IPv6 ip-address)
1 entry per IPv4 enabled Ethernet adapter : <ip-address> (string with a IPv4 ip-address)
entry_#y: <ip-address> Tunnel adapter (string with a IPv6 ip-address)
*/
todo_wine
ok
(
res
&&
(
buffers
!=
NULL
)
&&
(
numentries
=
=
3
)
&&
(
buffers
[
0
]
!=
NULL
)
&&
(
buffers
[
0
][
0
]
==
'\0'
),
ok
(
res
&&
(
buffers
!=
NULL
)
&&
(
numentries
>
=
3
)
&&
(
buffers
[
0
]
!=
NULL
)
&&
(
buffers
[
0
][
0
]
==
'\0'
),
"got %u with %u and %p,%u (%p:%d)
\n
"
,
res
,
GetLastError
(),
buffers
,
numentries
,
((
numentries
>
0
)
&&
buffers
)
?
buffers
[
0
]
:
NULL
,
((
numentries
>
0
)
&&
buffers
&&
buffers
[
0
])
?
lstrlenW
(
buffers
[
0
])
:
-
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