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
b779dee7
Commit
b779dee7
authored
Mar 05, 2015
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Always update type since it might change.
parent
4299da0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
address.c
dlls/dpnet/address.c
+1
-1
address.c
dlls/dpnet/tests/address.c
+1
-1
No files found.
dlls/dpnet/address.c
View file @
b779dee7
...
...
@@ -442,7 +442,6 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_AddComponent(IDirectPlay8Address *
/* Create a new one */
entry
=
heap_alloc
(
sizeof
(
struct
component
));
entry
->
name
=
heap_strdupW
(
pwszName
);
entry
->
type
=
dwDataType
;
list_add_tail
(
&
This
->
components
,
&
entry
->
entry
);
}
...
...
@@ -472,6 +471,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_AddComponent(IDirectPlay8Address *
break
;
}
entry
->
type
=
dwDataType
;
entry
->
size
=
dwDataSize
;
return
DPN_OK
;
...
...
dlls/dpnet/tests/address.c
View file @
b779dee7
...
...
@@ -125,7 +125,7 @@ static void address_addcomponents(void)
size
=
sizeof
(
buffer
);
hr
=
IDirectPlay8Address_GetComponentByName
(
localaddr
,
DPNA_KEY_HOSTNAME
,
buffer
,
&
size
,
&
type
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
type
==
DPNA_DATATYPE_STRING
,
"incorrect type %d
\n
"
,
type
);
ok
(
type
==
DPNA_DATATYPE_STRING
,
"incorrect type %d
\n
"
,
type
);
todo_wine
ok
(
!
lstrcmpW
(
buffer
,
localhost
),
"Invalid string: %s
\n
"
,
wine_dbgstr_w
(
buffer
));
hr
=
IDirectPlay8Address_AddComponent
(
localaddr
,
DPNA_KEY_PORT
,
&
port
,
sizeof
(
DWORD
)
+
2
,
DPNA_DATATYPE_DWORD
);
...
...
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