minor build fixes. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Wed, 31 Jul 2019 03:02:28 +0300
branchSDL-1.2
changeset 1296729968359729b
parent 12960 ad1bbfbca760
child 12975 537cc728d28b
minor build fixes.
src/cdrom/os2/SDL_syscdrom.c
     1.1 --- a/src/cdrom/os2/SDL_syscdrom.c	Tue Jul 30 21:30:24 2019 +0300
     1.2 +++ b/src/cdrom/os2/SDL_syscdrom.c	Wed Jul 31 03:02:28 2019 +0300
     1.3 @@ -83,14 +83,14 @@
     1.4  SDL_memset(&msp, 0x00, sizeof(MCI_SYSINFO_PARMS));
     1.5  /* Prepare structure to Ask Numer of Audio CDs */
     1.6  msp.usDeviceType = MCI_DEVTYPE_CD_AUDIO;	/* CD Audio Type */
     1.7 -msp.pszReturn = (PSZ)&SysInfoRet; 	/* Return Structure */
     1.8 +msp.pszReturn = SysInfoRet;		/* Return Structure */
     1.9  msp.ulRetSize = MCI_CMDRETBUFSIZE; 	/* Size of ret struct */
    1.10  if (LOUSHORT(mciSendCommand(0,MCI_SYSINFO, MCI_SYSINFO_QUANTITY | MCI_WAIT, (PVOID)&msp, 0)) != MCIERR_SUCCESS) return(CD_ERROR);
    1.11  SDL_numcds = atoi(SysInfoRet);
    1.12  if (SDL_numcds > MAX_DRIVES) SDL_numcds = MAX_DRIVES; /* Limit maximum CD number */
    1.13  
    1.14  /* Get and Add their system name to the SDL_cdlist */
    1.15 -msp.pszReturn = (PSZ)&SysInfoRet; 				/* Return Structure */
    1.16 +msp.pszReturn = SysInfoRet;				/* Return Structure */
    1.17  msp.ulRetSize = MCI_CMDRETBUFSIZE; 			/* Size of ret struct */
    1.18  msp.usDeviceType = MCI_DEVTYPE_CD_AUDIO;		/* CD Audio Type */
    1.19  for (i=0; i<SDL_numcds; i++)