From 24e5816245e01cd3b7335811bad00440398f003a Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Thu, 15 Jan 2009 09:44:25 +0100 Subject: [PATCH] mciseq: Remove superfluous pointer casts. --- dlls/mciseq/mcimidi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/mciseq/mcimidi.c b/dlls/mciseq/mcimidi.c index 3ee3fee56b3..47cb792362c 100644 --- a/dlls/mciseq/mcimidi.c +++ b/dlls/mciseq/mcimidi.c @@ -104,8 +104,8 @@ struct SCA { */ static DWORD CALLBACK MCI_SCAStarter(LPVOID arg) { - struct SCA* sca = (struct SCA*)arg; - DWORD ret; + struct SCA* sca = arg; + DWORD ret; TRACE("In thread before async command (%08x,%u,%08lx,%08lx)\n", sca->wDevID, sca->wMsg, sca->dwParam1, sca->dwParam2); @@ -403,7 +403,7 @@ static DWORD MIDI_mciReadMTrk(WINE_MCIMIDI* wmm, MCI_MIDITRACK* mmt) WARN("Buffer for text is too small (%u are needed)\n", len); len = sizeof(buf) - 1; } - if (mmioRead(wmm->hFile, (HPSTR)buf, len) == len) { + if (mmioRead(wmm->hFile, buf, len) == len) { buf[len] = 0; /* end string in case */ switch (HIBYTE(LOWORD(mmt->dwEventData))) { case 0x02: @@ -1051,7 +1051,7 @@ static DWORD MIDI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms) WARN("Buffer for text is too small (%u are needed)\n", len); len = sizeof(buf) - 1; } - if (mmioRead(wmm->hFile, (HPSTR)buf, len) == len) { + if (mmioRead(wmm->hFile, buf, len) == len) { buf[len] = 0; /* end string in case */ TRACE("%s => \"%s\"\n", (idx < 8 ) ? info[idx] : "", buf); } else {