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
5f8a14d5
Commit
5f8a14d5
authored
Mar 18, 2007
by
Kai Blin
Committed by
Alexandre Julliard
Mar 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Get rid of an ugly macro definition only used once.
parent
b3910387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
access.c
dlls/netapi32/access.c
+6
-9
No files found.
dlls/netapi32/access.c
View file @
5f8a14d5
...
...
@@ -88,14 +88,6 @@ static BOOL NETAPI_IsKnownUser(LPCWSTR UserName)
return
Result
;
}
#define NETAPI_ForceKnownUser(UserName, FailureCode) \
if (!NETAPI_IsKnownUser(UserName)) \
{ \
TRACE("Can't find information for user %s\n", \
debugstr_w(UserName)); \
return FailureCode; \
}
/************************************************************
* NetUserAdd (NETAPI32.@)
*/
...
...
@@ -152,7 +144,12 @@ NetUserGetInfo(LPCWSTR servername, LPCWSTR username, DWORD level,
if
(
status
!=
NERR_Success
)
return
status
;
NETAPI_ForceLocalComputer
(
servername
,
NERR_InvalidComputer
);
NETAPI_ForceKnownUser
(
username
,
NERR_UserNotFound
);
if
(
!
NETAPI_IsKnownUser
(
username
))
{
TRACE
(
"User %s is unknown.
\n
"
,
debugstr_w
(
username
));
return
NERR_UserNotFound
;
}
switch
(
level
)
{
...
...
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