Reduce complation warnings via changes in pbatard branch
This commit is contained in:
@@ -133,7 +133,7 @@ mciSendCommand_aspi(int id, UINT msg, DWORD flags, void *arg)
|
||||
{
|
||||
MCIERROR mci_error;
|
||||
|
||||
mci_error = mciSendCommand(id, msg, flags, (DWORD)arg);
|
||||
mci_error = mciSendCommand(id, msg, flags, (DWORD_PTR)arg);
|
||||
if ( mci_error ) {
|
||||
char error[256];
|
||||
|
||||
@@ -445,7 +445,7 @@ init_aspi (_img_private_t *env)
|
||||
if( ( srbGDEVBlock.SRB_Status == SS_COMP ) &&
|
||||
( srbGDEVBlock.SRB_DeviceType == DTYPE_CDROM ) ) {
|
||||
env->i_sid = MAKEWORD( i_adapter, i_target );
|
||||
env->hASPI = (long)hASPI;
|
||||
env->hASPI = hASPI;
|
||||
env->lpSendCommand = lpSendCommand;
|
||||
env->b_aspi_init = true;
|
||||
env->i_lun = i_lun;
|
||||
@@ -785,7 +785,6 @@ get_track_format_aspi(const _img_private_t *p_env, track_t track_num)
|
||||
MCI_OPEN_PARMS op;
|
||||
MCI_STATUS_PARMS st;
|
||||
DWORD i_flags;
|
||||
int ret;
|
||||
|
||||
memset( &op, 0, sizeof(MCI_OPEN_PARMS) );
|
||||
op.lpstrDeviceType = (LPCSTR)MCI_DEVTYPE_CD_AUDIO;
|
||||
@@ -799,7 +798,7 @@ get_track_format_aspi(const _img_private_t *p_env, track_t track_num)
|
||||
st.dwItem = MCI_CDA_STATUS_TYPE_TRACK;
|
||||
st.dwTrack = track_num;
|
||||
i_flags = MCI_TRACK | MCI_STATUS_ITEM ;
|
||||
ret = mciSendCommand_aspi( op.wDeviceID, MCI_STATUS, i_flags, &st );
|
||||
mciSendCommand_aspi( op.wDeviceID, MCI_STATUS, i_flags, &st );
|
||||
|
||||
/* Release access to the device */
|
||||
mciSendCommand_aspi( op.wDeviceID, MCI_CLOSE, MCI_WAIT, 0 );
|
||||
|
||||
Reference in New Issue
Block a user