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
1ad8180e
Commit
1ad8180e
authored
Apr 05, 2004
by
Juan Lang
Committed by
Alexandre Julliard
Apr 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix a couple tests and traces
- add a couple stubs required by native ntlanman.dll
parent
46138d8e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
9 deletions
+31
-9
netapi32.c
dlls/netapi32/netapi32.c
+3
-2
netapi32.spec
dlls/netapi32/netapi32.spec
+2
-2
access.c
dlls/netapi32/tests/access.c
+2
-1
wksta.c
dlls/netapi32/tests/wksta.c
+1
-1
wksta.c
dlls/netapi32/wksta.c
+23
-3
No files found.
dlls/netapi32/netapi32.c
View file @
1ad8180e
...
...
@@ -60,8 +60,9 @@ NET_API_STATUS WINAPI NetServerEnum(
LPDWORD
resume_handle
)
{
FIXME
(
"Stub (%p, %ld %p %ld %p %p %ld %s %p)
\n
"
,
servername
,
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
servertype
,
debugstr_w
(
domain
),
resume_handle
);
FIXME
(
"Stub (%s %ld %p %ld %p %p %ld %s %p)
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
servertype
,
debugstr_w
(
domain
),
resume_handle
);
return
ERROR_NO_BROWSER_SERVERS_FOUND
;
}
...
...
dlls/netapi32/netapi32.spec
View file @
1ad8180e
...
...
@@ -33,8 +33,8 @@
@ stub I_NetLogonUasLogoff
@ stub I_NetLogonUasLogon
@ stub I_NetNameCanonicalize
@ st
ub I_NetNameCompare
@ st
ub I_NetNameValidate
@ st
dcall I_NetNameCompare(ptr wstr wstr ptr ptr)
@ st
dcall I_NetNameValidate(ptr wstr ptr ptr)
@ stub I_NetPathCanonicalize
@ stub I_NetPathCompare
@ stub I_NetPathType
...
...
dlls/netapi32/tests/access.c
View file @
1ad8180e
...
...
@@ -111,7 +111,8 @@ void run_usergetinfo_tests(void)
"Bad Network Path: rc=%ld
\n
"
,
rc
);
}
rc
=
pNetUserGetInfo
(
sEmptyStr
,
sAdminUserName
,
0
,
(
LPBYTE
*
)
&
ui0
);
ok
(
rc
==
ERROR_BAD_NETPATH
,
"Bad Network Path: rc=%ld
\n
"
,
rc
);
ok
(
rc
==
ERROR_BAD_NETPATH
||
rc
==
NERR_Success
,
"Bad Network Path: rc=%ld
\n
"
,
rc
);
rc
=
pNetUserGetInfo
(
sInvalidName
,
sAdminUserName
,
0
,
(
LPBYTE
*
)
&
ui0
);
ok
(
rc
==
ERROR_INVALID_NAME
,
"Invalid Server Name: rc=%ld
\n
"
,
rc
);
rc
=
pNetUserGetInfo
(
sInvalidName2
,
sAdminUserName
,
0
,
(
LPBYTE
*
)
&
ui0
);
...
...
dlls/netapi32/tests/wksta.c
View file @
1ad8180e
...
...
@@ -152,7 +152,7 @@ static void run_wkstatransportenum_tests(void)
/* 3rd check: is param 3 passed? */
apiReturn
=
pNetWkstaTransportEnum
(
NULL
,
0
,
NULL
,
MAX_PREFERRED_LENGTH
,
NULL
,
NULL
,
NULL
);
ok
(
apiReturn
==
STATUS_ACCESS_VIOLATION
||
apiReturn
==
ERROR_INVALID_PARAME
TER
,
ok
(
apiReturn
==
STATUS_ACCESS_VIOLATION
||
apiReturn
==
RPC_X_NULL_REF_POIN
TER
,
"NetWkstaTransportEnum returned %ld
\n
"
,
apiReturn
);
/* 4th check: is param 6 passed? */
...
...
dlls/netapi32/wksta.c
View file @
1ad8180e
...
...
@@ -53,6 +53,8 @@ BOOL NETAPI_IsLocalComputer(LPCWSTR ServerName)
{
return
TRUE
;
}
else
if
(
ServerName
[
0
]
==
'\0'
)
return
TRUE
;
else
{
DWORD
dwSize
=
MAX_COMPUTERNAME_LENGTH
+
1
;
...
...
@@ -453,16 +455,34 @@ NET_API_STATUS WINAPI NetpGetComputerName(LPWSTR *Buffer)
}
}
NET_API_STATUS
WINAPI
I_NetNameCompare
(
LPVOID
p1
,
LPWSTR
wkgrp
,
LPWSTR
comp
,
LPVOID
p4
,
LPVOID
p5
)
{
FIXME
(
"(%p %s %s %p %p): stub
\n
"
,
p1
,
debugstr_w
(
wkgrp
),
debugstr_w
(
comp
),
p4
,
p5
);
return
ERROR_INVALID_PARAMETER
;
}
NET_API_STATUS
WINAPI
I_NetNameValidate
(
LPVOID
p1
,
LPWSTR
wkgrp
,
LPVOID
p3
,
LPVOID
p4
)
{
FIXME
(
"(%p %s %p %p): stub
\n
"
,
p1
,
debugstr_w
(
wkgrp
),
p3
,
p4
);
return
ERROR_INVALID_PARAMETER
;
}
NET_API_STATUS
WINAPI
NetWkstaGetInfo
(
LPWSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
)
{
NET_API_STATUS
ret
;
TRACE
(
"%
p
%ld %p
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
);
TRACE
(
"%
s
%ld %p
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
);
if
(
servername
)
{
FIXME
(
"remote computers not supported
\n
"
);
return
ERROR_INVALID_LEVEL
;
if
(
!
NETAPI_IsLocalComputer
(
servername
))
{
FIXME
(
"remote computers not supported
\n
"
);
return
ERROR_INVALID_LEVEL
;
}
}
if
(
!
bufptr
)
return
ERROR_INVALID_PARAMETER
;
...
...
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