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
1e6ffc9c
Commit
1e6ffc9c
authored
Nov 13, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32/tests: Fix workstation test failures on XP.
parent
5c1e6cf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
wksta.c
dlls/netapi32/tests/wksta.c
+9
-4
No files found.
dlls/netapi32/tests/wksta.c
View file @
1e6ffc9c
...
...
@@ -79,12 +79,17 @@ static void run_wkstausergetinfo_tests(void)
LPWKSTA_USER_INFO_1
ui1
=
NULL
;
LPWKSTA_USER_INFO_1101
ui1101
=
NULL
;
DWORD
dwSize
;
NET_API_STATUS
rc
;
/* Level 0 */
ok
(
pNetWkstaUserGetInfo
(
NULL
,
0
,
(
LPBYTE
*
)
&
ui0
)
==
NERR_Success
,
"NetWkstaUserGetInfo is unsuccessful
\n
"
);
rc
=
pNetWkstaUserGetInfo
(
NULL
,
0
,
(
LPBYTE
*
)
&
ui0
);
if
(
rc
==
NERR_WkstaNotStarted
)
{
skip
(
"Workstation service not running
\n
"
);
return
;
}
ok
(
!
rc
&&
ui0
,
"got %d and %p (expected NERR_Success and != NULL
\n
"
,
rc
,
ui0
);
ok
(
ui0
!=
NULL
,
"ui0 is NULL
\n
"
);
/* This failure occurred when I ran sshd as service and didn't authenticate
* Since the test dereferences ui0, the rest of this test is worthless
*/
...
...
@@ -168,7 +173,7 @@ static void run_wkstatransportenum_tests(void)
/* final check: valid return, actually get data back */
apiReturn
=
pNetWkstaTransportEnum
(
NULL
,
0
,
&
bufPtr
,
MAX_PREFERRED_LENGTH
,
&
entriesRead
,
&
totalEntries
,
NULL
);
ok
(
apiReturn
==
NERR_Success
||
apiReturn
==
ERROR_NETWORK_UNREACHABLE
,
ok
(
apiReturn
==
NERR_Success
||
apiReturn
==
ERROR_NETWORK_UNREACHABLE
||
apiReturn
==
NERR_WkstaNotStarted
,
"NetWkstaTransportEnum returned %d
\n
"
,
apiReturn
);
if
(
apiReturn
==
NERR_Success
)
{
/* WKSTA_TRANSPORT_INFO_0 *transports = (WKSTA_TRANSPORT_INFO_0 *)bufPtr; */
...
...
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