2004-04-01 09:09 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu>

* source/common/hbffind.c
     ! Fix for NT4

   * source/rdd/dbsort.prg
     * Fix by Mitja Podgornik
This commit is contained in:
Viktor Szakats
2004-04-01 07:02:06 +00:00
parent 3da6bbc443
commit c96529a45c
3 changed files with 15 additions and 1 deletions

View File

@@ -8,6 +8,14 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2004-04-01 09:09 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu>
* source/common/hbffind.c
! Fix for NT4
* source/rdd/dbsort.prg
* Fix by Mitja Podgornik
2004-04-01 08:49 UTC+0100 Viktor Szakats <viktor.szakats@syenar.hu>
* bin/bld.bat

View File

@@ -609,7 +609,7 @@ static BOOL hb_fsFindNextLow( PHB_FFIND ffind )
bFound = TRUE;
}
if( ! bFound )
if( ! bFound && info->hFindFile != INVALID_HANDLE_VALUE )
{
while( FindNextFile( info->hFindFile, &info->pFindFileData ) )
{

View File

@@ -63,6 +63,12 @@ FUNCTION __dbSort( cToFileName, aFields, bFor, bWhile, nNext, nRecord, lRest )
RETURN .F.
ENDIF
/* Sort returns an empty table if source table contains only one record */
IF Lastrec() == 1
COPY TO ( cToFileName )
RETURN .T.
ENDIF
BEGIN SEQUENCE
dbCreate( cToFileName, aStruct,, .T., "" )