* @author Perry Rapp, Creator, 2003-2005
* @author Kimmo Varis, 2004-2005
* @date Created: 2003-10
- * @date Edited: 2005-02-22 (Kimmo Varis)
+ * @date Edited: 2005-02-26 (Jochen Tucht)
*
* @brief Implementation of Unicode enabled file classes (Memory-mapped reader class, and Stdio replacement class)
*/
if (cchBuffer < cchBufferMin)
cchBuffer = cchBufferMin;
}
- CopyMemory(strBuffer.GetBufferSetLength(cchBuffer) + cchHead, pchTail, cchTail*sizeof*pchTail);
+ CopyMemory(strBuffer.GetBufferSetLength(cchBuffer) + cchHead, pchTail, cchTail * sizeof(TCHAR));
return cchLength;
}
++m_txtstats.nlfs;
}
++m_lineno;
- CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine*sizeof*pchLine);
+ CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine * sizeof(TCHAR));
return TRUE;
}
if (!wch)
{
++m_txtstats.nzeros;
- CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine*sizeof*pchLine);
+ CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine * sizeof(TCHAR));
return TRUE;
}
++cchLine;
}
+ CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine * sizeof(TCHAR));
return TRUE;
}
#else
++m_txtstats.nlfs;
}
++m_lineno;
- CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine*sizeof*pchLine);
+ CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine * sizeof(TCHAR));
return TRUE;
}
if (!ch)
{
++m_txtstats.nzeros;
- CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine*sizeof*pchLine);
+ CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine * sizeof(TCHAR));
return TRUE;
}
++cchLine;
}
+ CopyMemory(line.GetBufferSetLength(cchLine), pchLine, cchLine * sizeof(TCHAR));
return TRUE;
}
#endif
}
cchLine = Append(line, cchLine, sch, sch.GetLength());
}
+ line.ReleaseBuffer(cchLine);
return TRUE;
}