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
6bb8ca1e
Commit
6bb8ca1e
authored
Feb 07, 2017
by
Bruno Jesus
Committed by
Alexandre Julliard
Feb 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wlanapi: Semi-stub WlanEnumInterfaces.
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
02c6e453
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
main.c
dlls/wlanapi/main.c
+22
-2
wlanapi.c
dlls/wlanapi/tests/wlanapi.c
+0
-5
No files found.
dlls/wlanapi/main.c
View file @
6bb8ca1e
...
...
@@ -63,8 +63,28 @@ static HANDLE handle_new(struct wine_wlan **entry)
DWORD
WINAPI
WlanEnumInterfaces
(
HANDLE
handle
,
void
*
reserved
,
WLAN_INTERFACE_INFO_LIST
**
interface_list
)
{
FIXME
(
"(%p, %p, %p) stub
\n
"
,
handle
,
reserved
,
interface_list
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
struct
wine_wlan
*
wlan
;
WLAN_INTERFACE_INFO_LIST
*
ret_list
;
FIXME
(
"(%p, %p, %p) semi-stub
\n
"
,
handle
,
reserved
,
interface_list
);
if
(
!
handle
||
reserved
||
!
interface_list
)
return
ERROR_INVALID_PARAMETER
;
wlan
=
handle_index
(
handle
);
if
(
!
wlan
)
return
ERROR_INVALID_HANDLE
;
ret_list
=
WlanAllocateMemory
(
sizeof
(
WLAN_INTERFACE_INFO_LIST
));
if
(
!
ret_list
)
return
ERROR_NOT_ENOUGH_MEMORY
;
memset
(
&
ret_list
->
InterfaceInfo
[
0
],
0
,
sizeof
(
WLAN_INTERFACE_INFO
));
ret_list
->
dwNumberOfItems
=
0
;
ret_list
->
dwIndex
=
0
;
/* unused in this function */
*
interface_list
=
ret_list
;
return
ERROR_SUCCESS
;
}
DWORD
WINAPI
WlanCloseHandle
(
HANDLE
handle
,
void
*
reserved
)
...
...
dlls/wlanapi/tests/wlanapi.c
View file @
6bb8ca1e
...
...
@@ -134,24 +134,19 @@ static void test_WlanEnumInterfaces(void)
/* invalid parameters */
ret
=
WlanEnumInterfaces
(
NULL
,
NULL
,
&
list
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected 87, got %d
\n
"
,
ret
);
ok
(
list
==
bad_list
,
"list changed
\n
"
);
ret
=
WlanEnumInterfaces
(
handle
,
&
reserved
,
&
list
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected 87, got %d
\n
"
,
ret
);
ok
(
list
==
bad_list
,
"list changed
\n
"
);
ret
=
WlanEnumInterfaces
(
handle
,
NULL
,
NULL
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"Expected 87, got %d
\n
"
,
ret
);
ok
(
list
==
bad_list
,
"list changed
\n
"
);
/* good tests */
list
=
NULL
;
ret
=
WlanEnumInterfaces
(
handle
,
NULL
,
&
list
);
todo_wine
ok
(
ret
==
ERROR_SUCCESS
,
"Expected 0, got %d
\n
"
,
ret
);
todo_wine
ok
(
list
!=
NULL
,
"bad interface list
\n
"
);
if
(
!
list
||
!
list
->
dwNumberOfItems
)
{
...
...
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