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
14150c1a
Commit
14150c1a
authored
Feb 12, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Feb 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make MMIO_Open work with NULL filename again.
parent
91adf0aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mmio.c
dlls/winmm/mmio.c
+5
-3
No files found.
dlls/winmm/mmio.c
View file @
14150c1a
...
...
@@ -509,6 +509,8 @@ static FOURCC MMIO_ParseExt(LPCSTR szFileName)
TRACE
(
"(%s)
\n
"
,
debugstr_a
(
szFileName
));
if
(
!
szFileName
)
return
ret
;
extEnd
=
strrchr
(
szFileName
,
'+'
);
if
(
extEnd
)
{
/* Need to parse to find the extension */
...
...
@@ -719,7 +721,7 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo,
LPWINE_MMIO
wm
;
TRACE
(
"('%s', %p, %08lX, %d);
\n
"
,
szFileName
,
refmminfo
,
dwOpenFlags
,
type
);
if
(
dwOpenFlags
&
(
MMIO_PARSE
|
MMIO_EXIST
))
{
char
buffer
[
MAX_PATH
];
...
...
@@ -734,7 +736,7 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo,
if
((
wm
=
MMIO_Create
())
==
NULL
)
return
0
;
/* If both params are NULL, then parse the file name */
/* If both params are NULL, then parse the file name
if available
*/
if
(
refmminfo
->
fccIOProc
==
0
&&
refmminfo
->
pIOProc
==
NULL
)
{
wm
->
info
.
fccIOProc
=
MMIO_ParseExt
(
szFileName
);
/* Handle any unhandled/error case. Assume DOS file */
...
...
@@ -785,7 +787,7 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo,
/* call IO proc to actually open file */
refmminfo
->
wErrorRet
=
MMIO_SendMessage
(
wm
,
MMIOM_OPEN
,
(
LPARAM
)
szFileName
,
type
==
MMIO_PROC_16
,
MMIO_PROC_32A
);
type
==
MMIO_PROC_16
,
MMIO_PROC_32A
);
if
(
refmminfo
->
wErrorRet
==
0
)
return
wm
->
info
.
hmmio
;
...
...
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