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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
mmio.c
dlls/winmm/mmio.c
+3
-0
mmio.c
dlls/winmm/tests/mmio.c
+1
-1
No files found.
dlls/winmm/mmio.c
View file @
2d3f3204
...
@@ -127,6 +127,9 @@ static LRESULT CALLBACK mmioDosIOProc(LPMMIOINFO lpmmioinfo, UINT uMessage,
...
@@ -127,6 +127,9 @@ static LRESULT CALLBACK mmioDosIOProc(LPMMIOINFO lpmmioinfo, UINT uMessage,
* lParam2 = from whence to seek (SEEK_SET, SEEK_CUR, SEEK_END)
* lParam2 = from whence to seek (SEEK_SET, SEEK_CUR, SEEK_END)
* Returns: new file position, -1 on error
* Returns: new file position, -1 on error
*/
*/
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
);
ret
=
_llseek
((
HFILE
)
lpmmioinfo
->
adwInfo
[
0
],
(
LONG
)
lParam1
,
(
LONG
)
lParam2
);
if
(
ret
!=
-
1
)
if
(
ret
!=
-
1
)
lpmmioinfo
->
lDiskOffset
=
ret
;
lpmmioinfo
->
lDiskOffset
=
ret
;
...
...
dlls/winmm/tests/mmio.c
View file @
2d3f3204
...
@@ -750,7 +750,7 @@ static void test_mmioSeek(void)
...
@@ -750,7 +750,7 @@ static void test_mmioSeek(void)
/* seek backward from the end */
/* seek backward from the end */
pos
=
mmioSeek
(
hmmio
,
offset
,
SEEK_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
);
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