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
83cce966
Commit
83cce966
authored
Feb 24, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Handle unknown service GUID in enum_services_providers.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e3781c84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
peer.c
dlls/dpnet/peer.c
+2
-2
client.c
dlls/dpnet/tests/client.c
+12
-0
No files found.
dlls/dpnet/peer.c
View file @
83cce966
...
...
@@ -147,10 +147,10 @@ HRESULT enum_services_providers(const GUID * const service, DPN_SERVICE_PROVIDER
if
(
!
returned
||
!
buf_size
)
return
E_POINTER
;
*
returned
=
0
;
if
(
!
service
)
{
*
returned
=
0
;
res
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
serviceproviders
,
0
,
KEY_READ
,
&
key
);
if
(
res
==
ERROR_FILE_NOT_FOUND
)
return
DPNERR_DOESNOTEXIST
;
...
...
dlls/dpnet/tests/client.c
View file @
83cce966
...
...
@@ -211,6 +211,12 @@ static void test_enum_service_providers(void)
}
ok
(
HeapFree
(
GetProcessHeap
(),
0
,
serv_prov_info
),
"Failed freeing server provider info
\n
"
);
/* Invalid GUID */
items
=
88
;
hr
=
IDirectPlay8Client_EnumServiceProviders
(
client
,
&
appguid
,
NULL
,
serv_prov_info
,
&
size
,
&
items
,
0
);
ok
(
hr
==
DPNERR_DOESNOTEXIST
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
ok
(
items
==
88
,
"Found adapter %d
\n
"
,
items
);
}
static
void
test_enum_hosts
(
void
)
...
...
@@ -571,6 +577,12 @@ static void test_enum_service_providers_peer(void)
serv_prov_info
-=
items
;
/* set pointer back */
ok
(
HeapFree
(
GetProcessHeap
(),
0
,
serv_prov_info
),
"Failed freeing server provider info
\n
"
);
/* Invalid GUID */
items
=
88
;
hr
=
IDirectPlay8Peer_EnumServiceProviders
(
peer
,
&
appguid
,
NULL
,
serv_prov_info
,
&
size
,
&
items
,
0
);
ok
(
hr
==
DPNERR_DOESNOTEXIST
,
"IDirectPlay8Peer_EnumServiceProviders failed with %x
\n
"
,
hr
);
ok
(
items
==
88
,
"Found adapter %d
\n
"
,
items
);
}
static
void
test_enum_hosts_peer
(
void
)
...
...
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