Beispiel #1
0
void CDiskImageDos::SaveBuffer()
{
	long lLen;
	if ( m_hFile == -1 )
		return;
	Denibblize();
	lseek( m_hFile, m_nTrack << 12, SEEK_SET );
	lLen = write( m_hFile, m_abyDosBuffer, DOS_TRACK_BYTES );
	m_nStatus &= ~DIS_BUFFER_DIRTY;
}
void CDiskImageDos::SaveBuffer()
{
	long lLen;
	if ( m_hFile == -1 )
		return;
	if (m_nTrack >= m_uNumOfTrack)
		return;
	Denibblize();
	_lseek( m_hFile, m_uDataOffset + (m_nTrack * DOS_TRACK_BYTES), SEEK_SET );
	lLen = _write( m_hFile, m_abyDosBuffer, DOS_TRACK_BYTES );
	m_nStatus &= ~DIS_BUFFER_DIRTY;
}