midi: Fix unneeded left shift for MEVT_F_LONG

MEVT_F_LONG is a DWORD type with a value of 0x80000000, so there is no need to left-shit it.
This commit is contained in:
negativeExponent 2024-07-16 23:13:12 -07:00 committed by LibretroAdmin
parent a7bc0ad68f
commit 2dae318636

View File

@ -349,7 +349,7 @@ static bool winmm_midi_write_long_event(winmm_midi_buffer_t *buf,
buf->data[i++] = delta_time; buf->data[i++] = delta_time;
buf->data[i++] = 0; buf->data[i++] = 0;
buf->data[i++] = MEVT_F_LONG << 24 | MEVT_LONGMSG << 24 | data_size; buf->data[i++] = MEVT_F_LONG | MEVT_LONGMSG << 24 | data_size;
memcpy(&buf->data[i], data, data_size); memcpy(&buf->data[i], data, data_size);
buf->header.dwBytesRecorded += sizeof(DWORD) * 3 + data_size; buf->header.dwBytesRecorded += sizeof(DWORD) * 3 + data_size;