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
10c1532b
Commit
10c1532b
authored
Jan 12, 2000
by
Peter Hunnisett
Committed by
Alexandre Julliard
Jan 12, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem with initialization (reported by Andreas Mohr).
parent
504cfe51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
dplay.c
dlls/dplayx/dplay.c
+14
-18
No files found.
dlls/dplayx/dplay.c
View file @
10c1532b
...
...
@@ -2055,16 +2055,6 @@ HRESULT WINAPI DirectPlayCreate
return
CLASS_E_NOAGGREGATION
;
}
/* One possibility is that they want an exact dplay interface */
if
(
IsEqualGUID
(
&
IID_IDirectPlay2A
,
lpGUID
)
)
{
return
directPlay_QueryInterface
(
lpGUID
,
(
LPVOID
*
)
lplpDP
);
}
else
if
(
IsEqualGUID
(
&
IID_IDirectPlay2
,
lpGUID
)
)
{
return
directPlay_QueryInterface
(
lpGUID
,
(
LPVOID
*
)
lplpDP
);
}
/* Create an IDirectPlay object. We don't support that so we'll cheat and
give them an IDirectPlay2A object and hope that doesn't cause problems */
...
...
@@ -2073,22 +2063,28 @@ HRESULT WINAPI DirectPlayCreate
return
DPERR_UNAVAILABLE
;
}
if
(
IsEqualGUID
(
&
GUID_NULL
,
lpGUID
)
)
{
/* The GUID_NULL means don't bind a service provider. Just return the
interface */
return
DP_OK
;
}
/* Bind the desired service provider */
if
(
IsEqualGUID
(
lpGUID
,
&
DPSPGUID_MODEM
)
)
if
(
(
IsEqualGUID
(
lpGUID
,
&
DPSPGUID_MODEM
)
)
||
(
IsEqualGUID
(
lpGUID
,
&
DPSPGUID_SERIAL
)
)
||
(
IsEqualGUID
(
lpGUID
,
&
DPSPGUID_TCPIP
)
)
||
(
IsEqualGUID
(
lpGUID
,
&
DPSPGUID_IPX
)
)
)
{
FIXME
(
"
Modem
binding not supported yet
\n
"
);
FIXME
(
"
Service provider
binding not supported yet
\n
"
);
IDirectPlayX_Release
(
*
lplpDP
);
*
lplpDP
=
NULL
;
return
DPERR_INVALIDPARAMS
;
}
/* The GUID_NULL means don't bind a service provider. Just return the
interface. However, if it isn't we were given a bogus GUID, return an ERROR */
if
(
!
IsEqualGUID
(
lpGUID
,
&
GUID_NULL
)
)
{
WARN
(
"unknown GUID %s
\n
"
,
&
lpGUIDString
[
0
]
);
}
ERR
(
"unknown Service Provider %s
\n
"
,
&
lpGUIDString
[
0
]
);
IDirectPlayX_Release
(
*
lplpDP
);
*
lplpDP
=
NULL
;
...
...
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