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
f7f9508b
Commit
f7f9508b
authored
May 17, 1999
by
Jukka Kangas
Committed by
Alexandre Julliard
May 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When opening the file we don't need MMIO_EXCLUSIVE
rights. MMIO_DENYWRITE should be sufficient.
parent
fe2e7c5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mcimidi.c
multimedia/mcimidi.c
+1
-1
mciwave.c
multimedia/mciwave.c
+1
-1
No files found.
multimedia/mcimidi.c
View file @
f7f9508b
...
@@ -629,7 +629,7 @@ static DWORD MIDI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParm
...
@@ -629,7 +629,7 @@ static DWORD MIDI_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParm
TRACE_
(
mcimidi
)(
"MCI_OPEN_ELEMENT '%s' !
\n
"
,
lpstrElementName
);
TRACE_
(
mcimidi
)(
"MCI_OPEN_ELEMENT '%s' !
\n
"
,
lpstrElementName
);
if
(
lpstrElementName
&&
strlen
(
lpstrElementName
)
>
0
)
{
if
(
lpstrElementName
&&
strlen
(
lpstrElementName
)
>
0
)
{
wmm
->
hFile
=
mmioOpenA
(
lpstrElementName
,
NULL
,
wmm
->
hFile
=
mmioOpenA
(
lpstrElementName
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_READWRITE
|
MMIO_
EXCLUSIV
E
);
MMIO_ALLOCBUF
|
MMIO_READWRITE
|
MMIO_
DENYWRIT
E
);
if
(
wmm
->
hFile
==
0
)
{
if
(
wmm
->
hFile
==
0
)
{
WARN_
(
mcimidi
)(
"Can't find file='%s' !
\n
"
,
lpstrElementName
);
WARN_
(
mcimidi
)(
"Can't find file='%s' !
\n
"
,
lpstrElementName
);
wmm
->
nUseCount
--
;
wmm
->
nUseCount
--
;
...
...
multimedia/mciwave.c
View file @
f7f9508b
...
@@ -235,7 +235,7 @@ static DWORD WAVE_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_WAVE_OPEN_PARMSA l
...
@@ -235,7 +235,7 @@ static DWORD WAVE_mciOpen(UINT16 wDevID, DWORD dwFlags, LPMCI_WAVE_OPEN_PARMSA l
TRACE
(
mciwave
,
"MCI_OPEN_ELEMENT '%s' !
\n
"
,
lpstrElementName
);
TRACE
(
mciwave
,
"MCI_OPEN_ELEMENT '%s' !
\n
"
,
lpstrElementName
);
if
(
lpstrElementName
&&
(
strlen
(
lpstrElementName
)
>
0
))
{
if
(
lpstrElementName
&&
(
strlen
(
lpstrElementName
)
>
0
))
{
wmw
->
hFile
=
mmioOpenA
((
LPSTR
)
lpstrElementName
,
NULL
,
wmw
->
hFile
=
mmioOpenA
((
LPSTR
)
lpstrElementName
,
NULL
,
MMIO_ALLOCBUF
|
MMIO_READWRITE
|
MMIO_
EXCLUSIV
E
);
MMIO_ALLOCBUF
|
MMIO_READWRITE
|
MMIO_
DENYWRIT
E
);
if
(
wmw
->
hFile
==
0
)
{
if
(
wmw
->
hFile
==
0
)
{
WARN
(
mciwave
,
"can't find file='%s' !
\n
"
,
lpstrElementName
);
WARN
(
mciwave
,
"can't find file='%s' !
\n
"
,
lpstrElementName
);
dwRet
=
MCIERR_FILE_NOT_FOUND
;
dwRet
=
MCIERR_FILE_NOT_FOUND
;
...
...
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