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
27b28688
Commit
27b28688
authored
Sep 21, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Sep 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Rename params in IDirectMusic8Impl_GetDefaultPort.
parent
1a56a73c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
dmusic.c
dlls/dmusic/dmusic.c
+23
-22
No files found.
dlls/dmusic/dmusic.c
View file @
27b28688
...
...
@@ -248,29 +248,30 @@ static HRESULT WINAPI IDirectMusic8Impl_Activate(LPDIRECTMUSIC8 iface, BOOL enab
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusic8Impl_GetDefaultPort
(
LPDIRECTMUSIC8
iface
,
LPGUID
pguidP
ort
)
static
HRESULT
WINAPI
IDirectMusic8Impl_GetDefaultPort
(
LPDIRECTMUSIC8
iface
,
LPGUID
guid_p
ort
)
{
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
iface
);
HKEY
hkGUID
;
DWORD
returnTypeGUID
,
sizeOfReturnBuffer
=
50
;
char
returnBuffer
[
51
];
GUID
defaultPortGUID
;
WCHAR
buff
[
51
];
TRACE
(
"(%p, %p)
\n
"
,
This
,
pguidPort
);
if
((
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
DirectMusic
\\
Defaults"
,
0
,
KEY_READ
,
&
hkGUID
)
!=
ERROR_SUCCESS
)
||
(
RegQueryValueExA
(
hkGUID
,
"DefaultOutputPort"
,
NULL
,
&
returnTypeGUID
,
(
LPBYTE
)
returnBuffer
,
&
sizeOfReturnBuffer
)
!=
ERROR_SUCCESS
))
{
WARN
(
": registry entry missing
\n
"
);
*
pguidPort
=
CLSID_DirectMusicSynth
;
return
S_OK
;
}
/* FIXME: Check return types to ensure we're interpreting data right */
MultiByteToWideChar
(
CP_ACP
,
0
,
returnBuffer
,
-
1
,
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
));
CLSIDFromString
(
buff
,
&
defaultPortGUID
);
*
pguidPort
=
defaultPortGUID
;
return
S_OK
;
IDirectMusic8Impl
*
This
=
impl_from_IDirectMusic8
(
iface
);
HKEY
hkGUID
;
DWORD
returnTypeGUID
,
sizeOfReturnBuffer
=
50
;
char
returnBuffer
[
51
];
GUID
defaultPortGUID
;
WCHAR
buff
[
51
];
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
guid_port
);
if
((
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
DirectMusic
\\
Defaults"
,
0
,
KEY_READ
,
&
hkGUID
)
!=
ERROR_SUCCESS
)
||
(
RegQueryValueExA
(
hkGUID
,
"DefaultOutputPort"
,
NULL
,
&
returnTypeGUID
,
(
LPBYTE
)
returnBuffer
,
&
sizeOfReturnBuffer
)
!=
ERROR_SUCCESS
))
{
WARN
(
": registry entry missing
\n
"
);
*
guid_port
=
CLSID_DirectMusicSynth
;
return
S_OK
;
}
/* FIXME: Check return types to ensure we're interpreting data right */
MultiByteToWideChar
(
CP_ACP
,
0
,
returnBuffer
,
-
1
,
buff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
));
CLSIDFromString
(
buff
,
&
defaultPortGUID
);
*
guid_port
=
defaultPortGUID
;
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectMusic8Impl_SetDirectSound
(
LPDIRECTMUSIC8
iface
,
LPDIRECTSOUND
dsound
,
HWND
wnd
)
...
...
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