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
732cf4dc
Commit
732cf4dc
authored
Oct 02, 2000
by
Francois Jacques
Committed by
Alexandre Julliard
Oct 02, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes in mmio, related to buffering in record mode.
parent
454355ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
mmio.c
dlls/winmm/mmio.c
+12
-5
No files found.
dlls/winmm/mmio.c
View file @
732cf4dc
...
@@ -616,7 +616,7 @@ static LRESULT MMIO_Flush(WINE_MMIO* wm, UINT uFlags)
...
@@ -616,7 +616,7 @@ static LRESULT MMIO_Flush(WINE_MMIO* wm, UINT uFlags)
if
(
wm
->
info
.
cchBuffer
&&
(
wm
->
info
.
fccIOProc
!=
FOURCC_MEM
))
{
if
(
wm
->
info
.
cchBuffer
&&
(
wm
->
info
.
fccIOProc
!=
FOURCC_MEM
))
{
/* not quite sure what to do here, but I'll guess */
/* not quite sure what to do here, but I'll guess */
if
(
wm
->
info
.
dwFlags
&
MMIO_DIRTY
)
{
if
(
wm
->
info
.
dwFlags
&
MMIO_DIRTY
)
{
MMIO_SendMessage
(
wm
,
MMIOM_SEEK
,
wm
->
info
.
l
Disk
Offset
,
MMIO_SendMessage
(
wm
,
MMIOM_SEEK
,
wm
->
info
.
l
Buf
Offset
,
SEEK_SET
,
MMIO_PROC_32A
);
SEEK_SET
,
MMIO_PROC_32A
);
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
MMIO_SendMessage
(
wm
,
MMIOM_WRITE
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
wm
->
info
.
pchNext
-
wm
->
info
.
pchBuffer
,
MMIO_PROC_32A
);
wm
->
info
.
pchNext
-
wm
->
info
.
pchBuffer
,
MMIO_PROC_32A
);
...
@@ -643,7 +643,7 @@ static LONG MMIO_GrabNextBuffer(LPWINE_MMIO wm, int for_read)
...
@@ -643,7 +643,7 @@ static LONG MMIO_GrabNextBuffer(LPWINE_MMIO wm, int for_read)
wm
->
info
.
lBufOffset
=
wm
->
info
.
lDiskOffset
;
wm
->
info
.
lBufOffset
=
wm
->
info
.
lDiskOffset
;
wm
->
info
.
pchNext
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchNext
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndRead
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndRead
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndWrite
=
wm
->
info
.
pchBuffer
;
wm
->
info
.
pchEndWrite
=
wm
->
info
.
pchBuffer
+
wm
->
info
.
cchBuffer
;
if
(
for_read
)
{
if
(
for_read
)
{
size
=
MMIO_SendMessage
(
wm
,
MMIOM_READ
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
size
=
MMIO_SendMessage
(
wm
,
MMIOM_READ
,
(
LPARAM
)
wm
->
info
.
pchBuffer
,
...
@@ -1014,7 +1014,9 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
...
@@ -1014,7 +1014,9 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
cch
-=
count
;
cch
-=
count
;
bytesW
+=
count
;
bytesW
+=
count
;
wm
->
info
.
dwFlags
|=
MMIO_DIRTY
;
wm
->
info
.
dwFlags
|=
MMIO_DIRTY
;
}
else
}
else
{
if
(
wm
->
info
.
fccIOProc
==
FOURCC_MEM
)
{
if
(
wm
->
info
.
fccIOProc
==
FOURCC_MEM
)
{
if
(
wm
->
info
.
adwInfo
[
0
])
{
if
(
wm
->
info
.
adwInfo
[
0
])
{
/* from where would we get the memory handle? */
/* from where would we get the memory handle? */
...
@@ -1022,8 +1024,13 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
...
@@ -1022,8 +1024,13 @@ LONG WINAPI mmioWrite(HMMIO hmmio, HPCSTR pch, LONG cch)
break
;
break
;
}
else
break
;
}
else
break
;
}
}
}
if
(
wm
->
info
.
pchNext
==
wm
->
info
.
pchEndWrite
)
MMIO_Flush
(
wm
,
MMIO_EMPTYBUF
);
if
(
wm
->
info
.
pchNext
==
wm
->
info
.
pchEndWrite
)
{
MMIO_Flush
(
wm
,
MMIO_EMPTYBUF
);
MMIO_GrabNextBuffer
(
wm
,
FALSE
);
}
else
break
;
else
break
;
}
}
}
else
{
}
else
{
...
@@ -1588,7 +1595,7 @@ UINT WINAPI mmioAscend(HMMIO hmmio, LPMMCKINFO lpck, UINT uFlags)
...
@@ -1588,7 +1595,7 @@ UINT WINAPI mmioAscend(HMMIO hmmio, LPMMCKINFO lpck, UINT uFlags)
TRACE
(
"chunk is marked MMIO_DIRTY, correcting chunk size
\n
"
);
TRACE
(
"chunk is marked MMIO_DIRTY, correcting chunk size
\n
"
);
dwOldPos
=
mmioSeek
(
hmmio
,
0
,
SEEK_CUR
);
dwOldPos
=
mmioSeek
(
hmmio
,
0
,
SEEK_CUR
);
TRACE
(
"dwOldPos=%ld
\n
"
,
dwOldPos
);
TRACE
(
"dwOldPos=%ld
lpck->dwDataOffset = %ld
\n
"
,
dwOldPos
,
lpck
->
dwDataOffset
);
dwNewSize
=
dwOldPos
-
lpck
->
dwDataOffset
;
dwNewSize
=
dwOldPos
-
lpck
->
dwDataOffset
;
if
(
dwNewSize
!=
lpck
->
cksize
)
{
if
(
dwNewSize
!=
lpck
->
cksize
)
{
TRACE
(
"dwNewSize=%ld
\n
"
,
dwNewSize
);
TRACE
(
"dwNewSize=%ld
\n
"
,
dwNewSize
);
...
...
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