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
cba322d7
Commit
cba322d7
authored
Dec 15, 2014
by
Andrew Eikum
Committed by
Alexandre Julliard
Dec 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Allow larger MMTIME sizes.
parent
0d490f3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
wave.c
dlls/winmm/tests/wave.c
+6
-1
waveform.c
dlls/winmm/waveform.c
+8
-2
No files found.
dlls/winmm/tests/wave.c
View file @
cba322d7
...
...
@@ -487,7 +487,12 @@ static void check_position(int device, HWAVEOUT wout, DWORD bytes,
DWORD
returned
;
mmtime
.
wType
=
TIME_BYTES
;
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
));
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
)
-
1
);
ok
(
rc
==
MMSYSERR_ERROR
,
"waveOutGetPosition(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
mmtime
.
wType
=
TIME_BYTES
;
rc
=
waveOutGetPosition
(
wout
,
&
mmtime
,
sizeof
(
mmtime
)
+
1
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutGetPosition(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
if
(
mmtime
.
wType
!=
TIME_BYTES
&&
winetest_debug
>
1
)
...
...
dlls/winmm/waveform.c
View file @
cba322d7
...
...
@@ -2981,9 +2981,12 @@ UINT WINAPI waveOutGetPosition(HWAVEOUT hWaveOut, LPMMTIME lpTime,
{
TRACE
(
"(%p, %p, %u)
\n
"
,
hWaveOut
,
lpTime
,
uSize
);
if
(
!
uSize
||
!
lpTime
||
uSize
!=
sizeof
(
MMTIME
)
)
if
(
!
uSize
||
!
lpTime
)
return
MMSYSERR_INVALPARAM
;
if
(
uSize
<
sizeof
(
MMTIME
))
return
MMSYSERR_ERROR
;
return
WINMM_GetPosition
((
HWAVE
)
hWaveOut
,
lpTime
);
}
...
...
@@ -3602,9 +3605,12 @@ UINT WINAPI waveInGetPosition(HWAVEIN hWaveIn, LPMMTIME lpTime,
{
TRACE
(
"(%p, %p, %u)
\n
"
,
hWaveIn
,
lpTime
,
uSize
);
if
(
!
uSize
||
!
lpTime
||
uSize
!=
sizeof
(
MMTIME
)
)
if
(
!
uSize
||
!
lpTime
)
return
MMSYSERR_INVALPARAM
;
if
(
uSize
<
sizeof
(
MMTIME
))
return
MMSYSERR_ERROR
;
return
WINMM_GetPosition
((
HWAVE
)
hWaveIn
,
lpTime
);
}
...
...
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