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
258d4298
Commit
258d4298
authored
Jun 13, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Only compute dwFileSize for MMIO objects with a DOS ioproc.
parent
0f234ce4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mmio.c
dlls/winmm/mmio.c
+7
-1
No files found.
dlls/winmm/mmio.c
View file @
258d4298
...
...
@@ -667,7 +667,13 @@ static HMMIO MMIO_Open(LPSTR szFileName, MMIOINFO* refmminfo, DWORD dwOpenFlags,
(
LPARAM
)
szFileName
,
0
,
FALSE
);
/* grab file size, when possible */
if
((
pos
=
_llseek
((
HFILE
)
wm
->
info
.
adwInfo
[
0
],
0
,
SEEK_CUR
))
!=
-
1
)
/* FIXME: the code around dwFileSize is:
* - probably broken
* - needs to be tested when the app installs its own IOproc
* - likely to be removed
* So, restrict dwFileSize usage to DOS ioprocs
*/
if
(
wm
->
info
.
fccIOProc
==
FOURCC_DOS
&&
(
pos
=
_llseek
((
HFILE
)
wm
->
info
.
adwInfo
[
0
],
0
,
SEEK_CUR
))
!=
-
1
)
{
wm
->
dwFileSize
=
_llseek
((
HFILE
)
wm
->
info
.
adwInfo
[
0
],
0
,
SEEK_END
);
_llseek
((
HFILE
)
wm
->
info
.
adwInfo
[
0
],
pos
,
SEEK_SET
);
...
...
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