http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e42413
)
winecoreaudio: Fix incorrect casts from float to DWORD in wodGetVolume.
author
Ken Thomases
<ken@codeweavers.com>
Tue, 20 Oct 2009 01:38:42 +0000
(20:38 -0500)
committer
Alexandre Julliard
<julliard@winehq.org>
Tue, 20 Oct 2009 12:00:35 +0000
(14:00 +0200)
dlls/winecoreaudio.drv/audio.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/winecoreaudio.drv/audio.c
b/dlls/winecoreaudio.drv/audio.c
index 835d1a9af6399182dbe239d30e0554d672d839bd..91f65996310531257bba24a59bcbea6255e1a1e9 100644
(file)
--- a/
dlls/winecoreaudio.drv/audio.c
+++ b/
dlls/winecoreaudio.drv/audio.c
@@
-1452,7
+1452,7
@@
static DWORD wodGetVolume(WORD wDevID, WINE_WAVEOUT_INSTANCE* wwo, LPDWORD lpdwV
AudioUnit_GetVolume(wwo->audioUnit, &left, &right);
- *lpdwVol = (
(WORD) left * 0xFFFFl) + (((WORD)
right * 0xFFFFl) << 16);
+ *lpdwVol = (
WORD)(left * 0xFFFFl) + ((WORD)(
right * 0xFFFFl) << 16);
return MMSYSERR_NOERROR;
}