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
b724f0b2
Commit
b724f0b2
authored
Jun 28, 2017
by
Owen Rudge
Committed by
Alexandre Julliard
Jul 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsdapi: Implement IWSDUdpAddress_Get/SetMessageType.
Signed-off-by:
Owen Rudge
<
orudge@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52ad4d0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
address.c
dlls/wsdapi/address.c
+18
-4
address.c
dlls/wsdapi/tests/address.c
+7
-7
No files found.
dlls/wsdapi/address.c
View file @
b724f0b2
...
...
@@ -38,6 +38,7 @@ typedef struct IWSDUdpAddressImpl {
WCHAR
ipv4Address
[
25
];
WCHAR
ipv6Address
[
64
];
WORD
port
;
WSDUdpMessageType
messageType
;
}
IWSDUdpAddressImpl
;
static
inline
IWSDUdpAddressImpl
*
impl_from_IWSDUdpAddress
(
IWSDUdpAddress
*
iface
)
...
...
@@ -247,14 +248,27 @@ static HRESULT WINAPI IWSDUdpAddressImpl_GetExclusive(IWSDUdpAddress *This)
static
HRESULT
WINAPI
IWSDUdpAddressImpl_SetMessageType
(
IWSDUdpAddress
*
This
,
WSDUdpMessageType
messageType
)
{
FIXME
(
"(%p, %d)
\n
"
,
This
,
messageType
);
return
E_NOTIMPL
;
IWSDUdpAddressImpl
*
impl
=
impl_from_IWSDUdpAddress
(
This
);
TRACE
(
"(%p, %d)
\n
"
,
This
,
messageType
);
impl
->
messageType
=
messageType
;
return
S_OK
;
}
static
HRESULT
WINAPI
IWSDUdpAddressImpl_GetMessageType
(
IWSDUdpAddress
*
This
,
WSDUdpMessageType
*
pMessageType
)
{
FIXME
(
"(%p, %p)
\n
"
,
This
,
pMessageType
);
return
E_NOTIMPL
;
IWSDUdpAddressImpl
*
impl
=
impl_from_IWSDUdpAddress
(
This
);
TRACE
(
"(%p, %p)
\n
"
,
This
,
pMessageType
);
if
(
pMessageType
==
NULL
)
{
return
E_POINTER
;
}
*
pMessageType
=
impl
->
messageType
;
return
S_OK
;
}
static
HRESULT
WINAPI
IWSDUdpAddressImpl_SetTTL
(
IWSDUdpAddress
*
This
,
DWORD
dwTTL
)
...
...
dlls/wsdapi/tests/address.c
View file @
b724f0b2
...
...
@@ -210,26 +210,26 @@ static void GetSetMessageType_udp_tests(void)
ok
(
udpAddress
!=
NULL
,
"WSDCreateUdpAddress(NULL, &udpAddress) failed: udpAddress == NULL
\n
"
);
rc
=
IWSDUdpAddress_GetMessageType
(
udpAddress
,
NULL
);
todo_wine
ok
(
rc
==
E_POINTER
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
rc
==
E_POINTER
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
rc
=
IWSDUdpAddress_GetMessageType
(
udpAddress
,
&
actualMessageType
);
todo_wine
ok
(
rc
==
S_OK
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
rc
==
S_OK
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
actualMessageType
==
0
,
"GetMessageType returned unexpected message type: %d
\n
"
,
actualMessageType
);
/* Try setting a message type */
rc
=
IWSDUdpAddress_SetMessageType
(
udpAddress
,
expectedMessageType1
);
todo_wine
ok
(
rc
==
S_OK
,
"SetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
rc
==
S_OK
,
"SetMessageType returned unexpected result: %08x
\n
"
,
rc
);
rc
=
IWSDUdpAddress_GetMessageType
(
udpAddress
,
&
actualMessageType
);
todo_wine
ok
(
rc
==
S_OK
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
todo_wine
ok
(
actualMessageType
==
expectedMessageType1
,
"GetMessageType returned unexpected message type: %d
\n
"
,
actualMessageType
);
ok
(
rc
==
S_OK
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
actualMessageType
==
expectedMessageType1
,
"GetMessageType returned unexpected message type: %d
\n
"
,
actualMessageType
);
/* Set another one */
rc
=
IWSDUdpAddress_SetMessageType
(
udpAddress
,
expectedMessageType2
);
todo_wine
ok
(
rc
==
S_OK
,
"SetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
rc
==
S_OK
,
"SetMessageType returned unexpected result: %08x
\n
"
,
rc
);
rc
=
IWSDUdpAddress_GetMessageType
(
udpAddress
,
&
actualMessageType
);
todo_wine
ok
(
rc
==
S_OK
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
rc
==
S_OK
,
"GetMessageType returned unexpected result: %08x
\n
"
,
rc
);
ok
(
actualMessageType
==
expectedMessageType2
,
"GetMessageType returned unexpected message type: %d
\n
"
,
actualMessageType
);
/* Release the object */
...
...
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