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
6e966845
Commit
6e966845
authored
Dec 21, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Fill in pIOProc field in MMIOINFO.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55942
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
73072be1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
mmio.c
dlls/winmm/mmio.c
+1
-0
mmio.c
dlls/winmm/tests/mmio.c
+2
-0
No files found.
dlls/winmm/mmio.c
View file @
6e966845
...
...
@@ -693,6 +693,7 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo, DWORD dwOpenFlags,
wm
->
ioProc
->
count
++
;
wm
->
info
.
dwFlags
=
dwOpenFlags
;
wm
->
info
.
pIOProc
=
wm
->
ioProc
->
pIOProc
;
if
(
dwOpenFlags
&
MMIO_ALLOCBUF
)
{
refmminfo
->
wErrorRet
=
MMIO_SetBuffer
(
wm
,
refmminfo
->
pchBuffer
,
...
...
dlls/winmm/tests/mmio.c
View file @
6e966845
...
...
@@ -753,6 +753,7 @@ static void test_mmioOpen_fourcc(void)
mmioGetInfo
(
hmmio
,
&
mmio
,
0
);
ok
(
hmmio
&&
mmio
.
fccIOProc
==
FOURCC_XYZ
,
"mmioOpenA error %u, got %4.4s
\n
"
,
mmio
.
wErrorRet
,
(
LPCSTR
)
&
mmio
.
fccIOProc
);
ok
(
mmio
.
pIOProc
==
mmio_test_IOProc
,
"Unexpected pIOProc %p
\n
"
,
mmio
.
pIOProc
);
ok
(
mmio
.
adwInfo
[
1
]
==
0
,
"mmioOpenA sent MMIOM_SEEK, got %ld
\n
"
,
mmio
.
adwInfo
[
1
]);
ok
(
mmio
.
lDiskOffset
==
0
,
"mmioOpenA updated lDiskOffset, got %ld
\n
"
,
...
...
@@ -765,6 +766,7 @@ static void test_mmioOpen_fourcc(void)
mmioGetInfo
(
hmmio
,
&
mmio
,
0
);
ok
(
hmmio
&&
mmio
.
fccIOProc
==
FOURCC_XYZ
,
"mmioOpenA error %u, got %4.4s
\n
"
,
mmio
.
wErrorRet
,
(
LPCSTR
)
&
mmio
.
fccIOProc
);
ok
(
mmio
.
pIOProc
==
mmio_test_IOProc
,
"Unexpected pIOProc %p
\n
"
,
mmio
.
pIOProc
);
ok
(
mmio
.
adwInfo
[
1
]
==
0
,
"mmioOpenA sent MMIOM_SEEK, got %ld
\n
"
,
mmio
.
adwInfo
[
1
]);
ok
(
mmio
.
lDiskOffset
==
0
,
"mmioOpenA updated lDiskOffset, got %ld
\n
"
,
...
...
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