Changeset 145 for trunk/orca/win32/os.c

Show
Ignore:
Timestamp:
05/11/06 15:55:43 (3 years ago)
Author:
krobillard
Message:

orReadDir() now holds new block.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/win32/os.c

    r144 r145  
    191191    if( handle != -1 ) 
    192192    { 
     193        OIndex hold; 
     194        OIndex blkN; 
    193195        OBlock* blk = orMakeBlock( 0 ); 
    194196 
     197        blkN = orBlockN(blk); 
     198        hold = orHold( OT_BLOCK, blkN ); 
     199 
    195200        do 
    196201        { 
     
    201206        _findclose( handle ); 
    202207 
    203         orResult( OT_BLOCK, blk - orBLOCKS ); 
    204         return; 
    205     } 
    206  
    207     orResultFALSE; 
     208        orRelease( hold ); 
     209        orResultBLOCK( blkN ); 
     210    } 
     211    else 
     212    { 
     213        orResultFALSE; 
     214    } 
    208215} 
    209216