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
a61ef431
Commit
a61ef431
authored
May 05, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Fix test crash occuring when NetWkstaUserGetInfo fails.
parent
fc777c0e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
wksta.c
dlls/netapi32/tests/wksta.c
+11
-1
No files found.
dlls/netapi32/tests/wksta.c
View file @
a61ef431
...
...
@@ -80,7 +80,17 @@ static void run_wkstausergetinfo_tests(void)
/* Level 0 */
ok
(
pNetWkstaUserGetInfo
(
NULL
,
0
,
(
LPBYTE
*
)
&
ui0
)
==
NERR_Success
,
"NetWkstaUserGetInfo is successful
\n
"
);
"NetWkstaUserGetInfo is unsuccessful
\n
"
);
ok
(
ui0
!=
NULL
,
"ui0 is NULL
\n
"
);
/* This failure occured when I ran sshd as service and didn't authenticate
* Since the test dereferences ui0, the rest of this test is worthless
*/
if
(
!
ui0
)
{
return
;
}
ok
(
!
lstrcmpW
(
user_name
,
ui0
->
wkui0_username
),
"This is really user name
\n
"
);
pNetApiBufferSize
(
ui0
,
&
dwSize
);
ok
(
dwSize
>=
(
sizeof
(
WKSTA_USER_INFO_0
)
+
...
...
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