FLAIM change. Fixed misaligned I/O operations.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@672 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-07-14 22:30:57 +00:00
parent 95bb5a0a88
commit b8a3f28938
18 changed files with 259 additions and 187 deletions

View File

@@ -205,7 +205,7 @@ FLMEXP RCODE FLMAPI FlmDbRename(
// Allocate memory for a read buffer, the log header, and various
// file names.
if (RC_BAD( rc = f_alloc(
if( RC_BAD( rc = f_allocAlignedBuffer(
2048 + LOG_HEADER_SIZE + F_PATH_MAX_SIZE * 5, &pucBuffer)))
{
goto Exit;
@@ -492,19 +492,19 @@ FLMEXP RCODE FLMAPI FlmDbRename(
Exit:
if (pFileHdl)
if( pFileHdl)
{
pFileHdl->Release();
}
if (pucBuffer)
if( pucBuffer)
{
f_free( &pucBuffer);
f_freeAlignedBuffer( &pucBuffer);
}
// Free the list of renamed files.
while (pRenameList)
while( pRenameList)
{
DBRenameInfo * pRenameFile;