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
eddf841a
Commit
eddf841a
authored
Jun 17, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa/wineoss/winecoreaudio: Calculate frequency in 64bit (Coverity).
parent
7ce613c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+1
-1
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+1
-1
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+1
-1
No files found.
dlls/winealsa.drv/mmdevdrv.c
View file @
eddf841a
...
...
@@ -2823,7 +2823,7 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
freq
);
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
freq
=
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
*
freq
=
(
UINT64
)
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
else
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
...
...
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
eddf841a
...
...
@@ -2421,7 +2421,7 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
freq
);
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
freq
=
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
*
freq
=
(
UINT64
)
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
else
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
...
...
dlls/wineoss.drv/mmdevdrv.c
View file @
eddf841a
...
...
@@ -2146,7 +2146,7 @@ static HRESULT WINAPI AudioClock_GetFrequency(IAudioClock *iface, UINT64 *freq)
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
freq
);
if
(
This
->
share
==
AUDCLNT_SHAREMODE_SHARED
)
*
freq
=
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
*
freq
=
(
UINT64
)
This
->
fmt
->
nSamplesPerSec
*
This
->
fmt
->
nBlockAlign
;
else
*
freq
=
This
->
fmt
->
nSamplesPerSec
;
...
...
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