Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8b0b70ab
Commit
8b0b70ab
authored
Jun 14, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Jun 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PlaySound.
parent
f28da5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
playsound.c
dlls/winmm/playsound.c
+10
-3
No files found.
dlls/winmm/playsound.c
View file @
8b0b70ab
...
...
@@ -68,6 +68,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
'S'
,
'c'
,
'h'
,
'e'
,
'm'
,
'e'
,
's'
,
'\\'
,
'A'
,
'p'
,
'p'
,
's'
,
0
};
static
const
WCHAR
wszDotDefault
[]
=
{
'.'
,
'D'
,
'e'
,
'f'
,
'a'
,
'u'
,
'l'
,
't'
,
0
};
static
const
WCHAR
wszDotCurrent
[]
=
{
'.'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
0
};
static
const
WCHAR
wszNull
[]
=
{
0
};
TRACE
(
"searching in SystemSound list for %s
\n
"
,
debugstr_w
(
lpszName
));
...
...
@@ -101,7 +102,7 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
if
(
*
ptr
==
'.'
)
*
ptr
=
0
;
if
(
*
ptr
==
'\\'
)
{
err
=
RegOpenKeyW
(
hRegSnd
,
str
,
&
hRegApp
);
err
=
RegOpenKeyW
(
hRegSnd
,
ptr
+
1
,
&
hRegApp
);
break
;
}
}
...
...
@@ -116,9 +117,15 @@ static HMMIO get_mmioFromProfile(UINT uFlags, LPCWSTR lpszName)
err
=
RegOpenKeyW
(
hRegApp
,
lpszName
,
&
hScheme
);
RegCloseKey
(
hRegApp
);
if
(
err
!=
0
)
goto
none
;
/* what's the difference between .Current and .Default ? */
err
=
RegOpenKeyW
(
hScheme
,
wszDotDefault
,
&
hSnd
);
RegCloseKey
(
hScheme
);
if
(
err
!=
0
)
goto
none
;
if
(
err
!=
0
)
{
err
=
RegOpenKeyW
(
hScheme
,
wszDotCurrent
,
&
hSnd
);
RegCloseKey
(
hScheme
);
if
(
err
!=
0
)
goto
none
;
}
count
=
sizeof
(
str
)
/
sizeof
(
str
[
0
]);
err
=
RegQueryValueExW
(
hSnd
,
NULL
,
0
,
&
type
,
(
LPBYTE
)
str
,
&
count
);
RegCloseKey
(
hSnd
);
...
...
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