mirror of
https://github.com/holub/mame
synced 2025-05-16 19:00:43 +03:00
3rdparty/portmidi: Fix the right uninitialised local variable.
This commit is contained in:
parent
90cd5e392c
commit
f28dac8e0c
4
3rdparty/portmidi/pm_mac/pmmacosxcm.c
vendored
4
3rdparty/portmidi/pm_mac/pmmacosxcm.c
vendored
@ -519,7 +519,7 @@ static PmError midi_in_open(PmInternal *midi, void *driverInfo)
|
|||||||
{
|
{
|
||||||
MIDIEndpointRef endpoint;
|
MIDIEndpointRef endpoint;
|
||||||
coremidi_info_type info;
|
coremidi_info_type info;
|
||||||
OSStatus macHostError = noErr;
|
OSStatus macHostError;
|
||||||
int is_virtual = pm_descriptors[midi->device_id].pub.is_virtual;
|
int is_virtual = pm_descriptors[midi->device_id].pub.is_virtual;
|
||||||
|
|
||||||
/* if this is an external device, descriptor is a MIDIEndpointRef.
|
/* if this is an external device, descriptor is a MIDIEndpointRef.
|
||||||
@ -731,7 +731,7 @@ static PmError midi_abort(PmInternal *midi)
|
|||||||
|
|
||||||
static PmError midi_write_flush(PmInternal *midi, PmTimestamp timestamp)
|
static PmError midi_write_flush(PmInternal *midi, PmTimestamp timestamp)
|
||||||
{
|
{
|
||||||
OSStatus macHostError;
|
OSStatus macHostError = noErr;
|
||||||
coremidi_info_type info = (coremidi_info_type) midi->api_info;
|
coremidi_info_type info = (coremidi_info_type) midi->api_info;
|
||||||
MIDIEndpointRef endpoint = (MIDIEndpointRef) (intptr_t)
|
MIDIEndpointRef endpoint = (MIDIEndpointRef) (intptr_t)
|
||||||
pm_descriptors[midi->device_id].descriptor;
|
pm_descriptors[midi->device_id].descriptor;
|
||||||
|
Loading…
Reference in New Issue
Block a user