From: David M. <ig...@us...> - 2006-01-18 10:19:06
|
Update of /cvsroot/myoledb/myoledb3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4885 Modified Files: rowset.cpp Log Message: Remove last use of limiting MAX_TOTAL_ROWBUFF_SIZE constant Index: rowset.cpp =================================================================== RCS file: /cvsroot/myoledb/myoledb3/rowset.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- rowset.cpp 18 Jan 2006 09:13:27 -0000 1.2 +++ rowset.cpp 18 Jan 2006 10:18:49 -0000 1.3 @@ -425,7 +425,8 @@ // List of free slots. // This manages the allocation of sets of contiguous rows. - if (FAILED( InitializeSlotList( MAX_TOTAL_ROWBUFF_SIZE / m_cbRowSize, + // We only need a maximum of TotalRows+1 (which is what we allocate) +1 for the extra page allocated + if (FAILED( InitializeSlotList( m_pData->m_dwTotalRows+2, m_cbRowSize, g_dwPageSize, m_prowbitsIBuffer, &m_pIBuffer, &m_rgbRowData ))) return E_FAIL; |