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
304c455b
Commit
304c455b
authored
Nov 29, 2010
by
Alexander Puzankov
Committed by
Alexandre Julliard
Dec 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Use the default I/O procedure only if a custom procedure for a given FOURCC is not found.
parent
cc5f2b2c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mmio.c
dlls/winmm/mmio.c
+7
-7
No files found.
dlls/winmm/mmio.c
View file @
304c455b
...
...
@@ -617,13 +617,13 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo, DWORD dwOpenFlags,
if
(
refmminfo
->
fccIOProc
==
0
&&
refmminfo
->
pIOProc
==
NULL
)
{
wm
->
info
.
fccIOProc
=
MMIO_ParseExtA
(
szFileName
);
/* Handle any unhandled/error case. Assume DOS file */
if
(
wm
->
info
.
fccIOProc
==
0
)
if
(
wm
->
info
.
fccIOProc
==
0
)
{
wm
->
info
.
fccIOProc
=
FOURCC_DOS
;
if
(
!
(
wm
->
ioProc
=
MMIO_FindProcNode
(
wm
->
info
.
fccIOProc
)))
{
/* If not found, retry with FOURCC_DOS */
wm
->
info
.
fccIOProc
=
FOURCC_DOS
;
if
(
!
(
wm
->
ioProc
=
MMIO_FindProcNode
(
wm
->
info
.
fccIOProc
)))
goto
error2
;
wm
->
ioProc
=
&
defaultProcs
[
0
];
}
else
if
(
!
(
wm
->
ioProc
=
MMIO_FindProcNode
(
wm
->
info
.
fccIOProc
)))
{
/* If not found, assume DOS file */
wm
->
ioProc
=
&
defaultProcs
[
0
]
;
}
wm
->
bTmpIOProc
=
FALSE
;
}
...
...
@@ -1315,7 +1315,7 @@ MMRESULT WINAPI mmioRenameA(LPCSTR szFileName, LPCSTR szNewFileName,
/* Handle any unhandled/error case from above. Assume DOS file */
if
(
!
lpmmioinfo
||
(
lpmmioinfo
->
fccIOProc
==
0
&&
lpmmioinfo
->
pIOProc
==
NULL
&&
ioProc
==
NULL
))
ioProc
=
MMIO_FindProcNode
(
FOURCC_DOS
)
;
ioProc
=
&
defaultProcs
[
0
]
;
/* if just the four character code is present, look up IO proc */
else
if
(
lpmmioinfo
->
pIOProc
==
NULL
)
ioProc
=
MMIO_FindProcNode
(
lpmmioinfo
->
fccIOProc
);
...
...
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