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
54d44d46
Commit
54d44d46
authored
Sep 13, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash in PlaySound thread.
parent
b9ce4fd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mmsystem.c
multimedia/mmsystem.c
+10
-10
No files found.
multimedia/mmsystem.c
View file @
54d44d46
...
...
@@ -199,17 +199,17 @@ static int PlaySound_Loop = FALSE;
static
int
PlaySound_SearchMode
=
0
;
/* 1 - sndPlaySound search order
2 - PlaySound order */
static
HMMIO
16
get_mmioFromFile
(
LPCSTR
lpszName
)
static
HMMIO
get_mmioFromFile
(
LPCSTR
lpszName
)
{
return
mmioOpen
16
((
LPSTR
)
lpszName
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_READ
|
MMIO_DENYWRITE
);
return
mmioOpen
A
((
LPSTR
)
lpszName
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_READ
|
MMIO_DENYWRITE
);
}
static
HMMIO
16
get_mmioFromProfile
(
UINT
uFlags
,
LPCSTR
lpszName
)
static
HMMIO
get_mmioFromProfile
(
UINT
uFlags
,
LPCSTR
lpszName
)
{
char
str
[
128
];
LPSTR
ptr
;
HMMIO
16
hmmio
;
HMMIO
hmmio
;
TRACE
(
"searching in SystemSound List !
\n
"
);
GetProfileStringA
(
"Sounds"
,
(
LPSTR
)
lpszName
,
""
,
str
,
sizeof
(
str
));
...
...
@@ -227,10 +227,10 @@ static HMMIO16 get_mmioFromProfile(UINT uFlags, LPCSTR lpszName)
return
hmmio
;
}
static
BOOL
16
WINAPI
proc_PlaySound
(
LPCSTR
lpszSoundName
,
UINT
uFlags
)
static
BOOL
WINAPI
proc_PlaySound
(
LPCSTR
lpszSoundName
,
UINT
uFlags
)
{
BOOL
16
bRet
=
FALSE
;
HMMIO
16
hmmio
;
BOOL
bRet
=
FALSE
;
HMMIO
hmmio
;
MMCKINFO
ckMainRIFF
;
TRACE
(
"SoundName='%s' uFlags=%04X !
\n
"
,
lpszSoundName
,
uFlags
);
...
...
@@ -239,13 +239,13 @@ static BOOL16 WINAPI proc_PlaySound(LPCSTR lpszSoundName, UINT uFlags)
return
FALSE
;
}
if
(
uFlags
&
SND_MEMORY
)
{
MMIOINFO
16
mminfo
;
MMIOINFO
mminfo
;
memset
(
&
mminfo
,
0
,
sizeof
(
mminfo
));
mminfo
.
fccIOProc
=
FOURCC_MEM
;
mminfo
.
pchBuffer
=
(
LPSTR
)
lpszSoundName
;
mminfo
.
cchBuffer
=
-
1
;
TRACE
(
"Memory sound %p
\n
"
,
lpszSoundName
);
hmmio
=
mmioOpen
16
(
NULL
,
&
mminfo
,
MMIO_READ
);
hmmio
=
mmioOpen
A
(
NULL
,
&
mminfo
,
MMIO_READ
);
}
else
{
hmmio
=
0
;
if
(
uFlags
&
SND_ALIAS
)
...
...
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