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
86061862
Commit
86061862
authored
Feb 20, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Save data that was not yet written in mmioSetInfo.
parent
193663e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
mmio.c
dlls/winmm/mmio.c
+10
-12
No files found.
dlls/winmm/mmio.c
View file @
86061862
...
...
@@ -949,25 +949,23 @@ MMRESULT WINAPI mmioGetInfo(HMMIO hmmio, MMIOINFO* lpmmioinfo, UINT uFlags)
*/
MMRESULT
WINAPI
mmioSetInfo
(
HMMIO
hmmio
,
const
MMIOINFO
*
lpmmioinfo
,
UINT
uFlags
)
{
LPWINE_MMIO
wm
;
LPWINE_MMIO
wm
;
TRACE
(
"(%p,%p,0x%08x)
\n
"
,
hmmio
,
lpmmioinfo
,
uFlags
);
if
((
wm
=
MMIO_Get
(
hmmio
))
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
MMSYSERR_INVALHANDLE
;
/* check pointers coherence */
if
(
lpmmioinfo
->
pchNext
<
wm
->
info
.
pchBuffer
||
lpmmioinfo
->
pchNext
>
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
||
lpmmioinfo
->
pchEndRead
<
wm
->
info
.
pchBuffer
||
lpmmioinfo
->
pchEndRead
>
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
||
lpmmioinfo
->
pchEndWrite
<
wm
->
info
.
pchBuffer
||
lpmmioinfo
->
pchEndWrite
>
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
)
return
MMSYSERR_INVALPARAM
;
wm
->
info
.
pchNext
=
lpmmioinfo
->
pchNext
;
wm
->
info
.
pchEndRead
=
lpmmioinfo
->
pchEndRead
;
lpmmioinfo
->
pchNext
>
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
||
lpmmioinfo
->
pchEndRead
<
wm
->
info
.
pchBuffer
||
lpmmioinfo
->
pchEndRead
>
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
||
lpmmioinfo
->
pchEndWrite
<
wm
->
info
.
pchBuffer
||
lpmmioinfo
->
pchEndWrite
>
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
)
return
MMSYSERR_INVALPARAM
;
wm
->
info
=
*
lpmmioinfo
;
return
MMSYSERR_NOERROR
;
}
...
...
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