mciseq: Remove superfluous pointer casts.

Michael Stefaniuc mstefani at redhat.de
Thu Jan 15 02:44:25 CST 2009


---
 dlls/mciseq/mcimidi.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/mciseq/mcimidi.c b/dlls/mciseq/mcimidi.c
index 3ee3fee..47cb792 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 {
-- 
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/20090115/c12322f5/attachment.pgp 


More information about the wine-patches mailing list