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
2d3f3204
Commit
2d3f3204
authored
Nov 13, 2012
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Nov 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Fix SEEK_END direction of mmio files without buffering.
parent
10c7f585
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
mmio.c
dlls/winmm/mmio.c
+4
-1
mmio.c
dlls/winmm/tests/mmio.c
+1
-1
No files found.
dlls/winmm/mmio.c
View file @
2d3f3204
...
...
@@ -127,7 +127,10 @@ static LRESULT CALLBACK mmioDosIOProc(LPMMIOINFO lpmmioinfo, UINT uMessage,
* lParam2 = from whence to seek (SEEK_SET, SEEK_CUR, SEEK_END)
* Returns: new file position, -1 on error
*/
ret
=
_llseek
((
HFILE
)
lpmmioinfo
->
adwInfo
[
0
],
(
LONG
)
lParam1
,
(
LONG
)
lParam2
);
if
(
lParam2
==
SEEK_END
)
ret
=
_llseek
((
HFILE
)
lpmmioinfo
->
adwInfo
[
0
],
-
(
LONG
)
lParam1
,
(
LONG
)
lParam2
);
else
ret
=
_llseek
((
HFILE
)
lpmmioinfo
->
adwInfo
[
0
],
(
LONG
)
lParam1
,
(
LONG
)
lParam2
);
if
(
ret
!=
-
1
)
lpmmioinfo
->
lDiskOffset
=
ret
;
return
ret
;
...
...
dlls/winmm/tests/mmio.c
View file @
2d3f3204
...
...
@@ -750,7 +750,7 @@ static void test_mmioSeek(void)
/* seek backward from the end */
pos
=
mmioSeek
(
hmmio
,
offset
,
SEEK_END
);
todo_wine
ok
(
pos
==
size
-
offset
,
"expected %d, got %d
\n
"
,
size
-
offset
,
pos
);
ok
(
pos
==
size
-
offset
,
"expected %d, got %d
\n
"
,
size
-
offset
,
pos
);
mmioClose
(
hmmio
,
0
);
}
...
...
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