Patch level :2.0 partners nopatch
Files correlati :scp0.exe Ricompilazione Demo : [ ] Commento :personalizzazione giuntolesca git-svn-id: svn://10.65.10.50/trunk@11572 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
68c9a63da0
commit
9a60b5abfd
@ -1774,7 +1774,7 @@ void TExternisamfile::init(const char* name, bool exclusive, bool index)
|
||||
int TExternisamfile::open(bool exclusive, bool index)
|
||||
{
|
||||
_isam_handle = prefix().open_isamfile(_logicnum, _name, exclusive, index);
|
||||
if (_isam_handle > 0)
|
||||
if (_isam_handle > 0)
|
||||
{
|
||||
if (prefix().get_recdes(_logicnum).NKeys <= 0)
|
||||
fatal_box("Il file %d (%s) e' senza indici", num(), (const char*)filename());
|
||||
@ -1807,7 +1807,10 @@ int TExternisamfile::close()
|
||||
}
|
||||
|
||||
int TExternisamfile::zap()
|
||||
{
|
||||
{
|
||||
RecDes* rd = new RecDes;
|
||||
memcpy(rd, curr().rec_des(), sizeof(RecDes));
|
||||
|
||||
int err = prefix().close_isamfile(_isam_handle);
|
||||
if (err == NOERR)
|
||||
{
|
||||
@ -1815,10 +1818,12 @@ int TExternisamfile::zap()
|
||||
if (err == NOERR)
|
||||
{
|
||||
TRecnotype peod;
|
||||
err = DB_packindex(TRUE, _name, curr().rec_des(), &peod, FALSE);
|
||||
err = DB_packindex(TRUE, _name, rd, &peod, FALSE);
|
||||
}
|
||||
_isam_handle = prefix().open_isamfile(_logicnum, _name);
|
||||
}
|
||||
|
||||
delete rd;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user