void COutBuffer::FlushWithCheck() { HRESULT result = Flush(); #ifdef _NO_EXCEPTIONS ErrorCode = result; #else if (result != S_OK) throw COutBufferException(result); #endif }
void COutBuffer::WriteBlock() { HRESULT result = Flush(); if (result != S_OK) throw COutBufferException(result); }