// If the last buffer isn't full but it has data, write the data we have. if (logData[logBufferWriting].index) { WriteOneBuffer( filePointer2, (BYTE *)logData[logBufferWriting].buffer, logData[logBufferWriting].index ); }

if (logData2[logBufferWriting2].index2) // If the last buffer isn't full but it has data, write the data we have. { WriteOneBuffer2( filePointer4, (BYTE *)logData2[logBufferWriting2].buffer2, logData2[logBufferWriting2].index2 ); } }