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
f7ddc1eb
Commit
f7ddc1eb
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: Avoid direct seeking for memory files.
parent
c4629e5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
mmio.c
dlls/winmm/mmio.c
+1
-1
mmio.c
dlls/winmm/tests/mmio.c
+3
-12
No files found.
dlls/winmm/mmio.c
View file @
f7ddc1eb
...
...
@@ -871,7 +871,7 @@ LONG WINAPI mmioSeek(HMMIO hmmio, LONG lOffset, INT iOrigin)
return
MMSYSERR_INVALHANDLE
;
/* not buffered, direct seek on file */
if
(
!
wm
->
info
.
pchBuffer
)
if
(
!
wm
->
info
.
pchBuffer
&&
wm
->
info
.
fccIOProc
!=
FOURCC_MEM
)
return
send_message
(
wm
->
ioProc
,
&
wm
->
info
,
MMIOM_SEEK
,
lOffset
,
iOrigin
,
FALSE
);
switch
(
iOrigin
)
{
...
...
dlls/winmm/tests/mmio.c
View file @
f7ddc1eb
...
...
@@ -315,10 +315,7 @@ static void test_mmioOpen(char *fname)
ok
(
mmio
.
lDiskOffset
==
0
,
"expected 0, got %d
\n
"
,
mmio
.
lDiskOffset
);
ret
=
mmioSeek
(
hmmio
,
0
,
SEEK_CUR
);
if
(
fname
)
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
else
todo_wine
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
mmioClose
(
hmmio
,
0
);
...
...
@@ -531,10 +528,7 @@ static void test_mmioSetBuffer(char *fname)
ok
(
mmio
.
lDiskOffset
==
0
,
"expected 0, got %d
\n
"
,
mmio
.
lDiskOffset
);
ret
=
mmioSeek
(
hmmio
,
0
,
SEEK_CUR
);
if
(
fname
)
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
else
todo_wine
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ret
=
mmioSetBuffer
(
hmmio
,
NULL
,
0
,
MMIO_ALLOCBUF
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioSetBuffer error %u
\n
"
,
ret
);
...
...
@@ -554,10 +548,7 @@ static void test_mmioSetBuffer(char *fname)
ok
(
mmio
.
lDiskOffset
==
0
,
"expected 0, got %d
\n
"
,
mmio
.
lDiskOffset
);
ret
=
mmioSeek
(
hmmio
,
0
,
SEEK_CUR
);
if
(
fname
)
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
else
todo_wine
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ret
=
mmioSetBuffer
(
hmmio
,
buf
,
0
,
MMIO_ALLOCBUF
);
ok
(
ret
==
MMSYSERR_NOERROR
,
"mmioSetBuffer error %u
\n
"
,
ret
);
...
...
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