winenas.drv: Remove superfluous pointer casts.
Michael Stefaniuc
mstefani at redhat.de
Wed Jan 21 02:34:48 CST 2009
---
dlls/winenas.drv/audio.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/winenas.drv/audio.c b/dlls/winenas.drv/audio.c
index 51092a8..f418315 100644
--- a/dlls/winenas.drv/audio.c
+++ b/dlls/winenas.drv/audio.c
@@ -334,8 +334,8 @@ static DWORD bytes_to_mmtime(LPMMTIME lpTime, DWORD position,
static void volume_effect16(void *bufin, void* bufout, int length, int left,
int right, int nChannels)
{
- short *d_out = (short *)bufout;
- short *d_in = (short *)bufin;
+ short *d_out = bufout;
+ short *d_in = bufin;
int i, v;
/*
@@ -360,8 +360,8 @@ static void volume_effect16(void *bufin, void* bufout, int length, int left,
static void volume_effect8(void *bufin, void* bufout, int length, int left,
int right, int nChannels)
{
- char *d_out = (char *)bufout;
- char *d_in = (char *)bufin;
+ char *d_out = bufout;
+ char *d_in = bufin;
int i, v;
/*
@@ -841,8 +841,8 @@ static void wodPlayer_ProcessMessages(WINE_WAVEOUT* wwo)
*/
static DWORD CALLBACK wodPlayer(LPVOID pmt)
{
- WORD uDevID = (DWORD)pmt;
- WINE_WAVEOUT* wwo = (WINE_WAVEOUT*)&WOutDev[uDevID];
+ WORD uDevID = (DWORD)pmt;
+ WINE_WAVEOUT* wwo = &WOutDev[uDevID];
wwo->state = WINE_WS_STOPPED;
SetEvent(wwo->hStartUpEvent);
@@ -1337,7 +1337,7 @@ static int nas_open(WINE_WAVEOUT* wwo) {
static AuBool
event_handler(AuServer* aud, AuEvent* ev, AuEventHandlerRec* hnd)
{
- WINE_WAVEOUT *wwo = (WINE_WAVEOUT *)hnd->data;
+ WINE_WAVEOUT *wwo = hnd->data;
switch (ev->type) {
case AuEventTypeElementNotify: {
--
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090121/829dd522/attachment.pgp
More information about the wine-patches
mailing list