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
71b8a56c
Commit
71b8a56c
authored
Jun 16, 2014
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jun 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Update lBufOffset after seeking file directly.
parent
f7ddc1eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
mmio.c
dlls/winmm/mmio.c
+6
-2
mmio.c
dlls/winmm/tests/mmio.c
+1
-1
No files found.
dlls/winmm/mmio.c
View file @
71b8a56c
...
...
@@ -871,8 +871,12 @@ LONG WINAPI mmioSeek(HMMIO hmmio, LONG lOffset, INT iOrigin)
return
MMSYSERR_INVALHANDLE
;
/* not buffered, direct seek on file */
if
(
!
wm
->
info
.
pchBuffer
&&
wm
->
info
.
fccIOProc
!=
FOURCC_MEM
)
return
send_message
(
wm
->
ioProc
,
&
wm
->
info
,
MMIOM_SEEK
,
lOffset
,
iOrigin
,
FALSE
);
if
(
!
wm
->
info
.
pchBuffer
&&
wm
->
info
.
fccIOProc
!=
FOURCC_MEM
)
{
LRESULT
ret
=
send_message
(
wm
->
ioProc
,
&
wm
->
info
,
MMIOM_SEEK
,
lOffset
,
iOrigin
,
FALSE
);
if
(
ret
!=
-
1
)
wm
->
info
.
lBufOffset
=
wm
->
info
.
lDiskOffset
;
return
ret
;
}
switch
(
iOrigin
)
{
case
SEEK_SET
:
...
...
dlls/winmm/tests/mmio.c
View file @
71b8a56c
...
...
@@ -725,7 +725,7 @@ static void test_mmioSeek(void)
ok
(
mmio
.
pchNext
==
mmio
.
pchBuffer
,
"expected %p, got %p
\n
"
,
mmio
.
pchBuffer
,
mmio
.
pchNext
);
ok
(
mmio
.
pchEndRead
==
mmio
.
pchBuffer
,
"expected %p, got %p
\n
"
,
mmio
.
pchBuffer
,
mmio
.
pchEndRead
);
ok
(
mmio
.
pchEndWrite
==
mmio
.
pchBuffer
+
mmio
.
cchBuffer
,
"expected %p + %d, got %p
\n
"
,
mmio
.
pchBuffer
,
mmio
.
cchBuffer
,
mmio
.
pchEndWrite
);
todo_wine
ok
(
mmio
.
lBufOffset
==
size
,
"expected %d, got %d
\n
"
,
size
,
mmio
.
lBufOffset
);
ok
(
mmio
.
lBufOffset
==
size
,
"expected %d, got %d
\n
"
,
size
,
mmio
.
lBufOffset
);
ok
(
mmio
.
lDiskOffset
==
size
,
"expected %d, got %d
\n
"
,
size
,
mmio
.
lDiskOffset
);
/* seek backward from the end */
...
...
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