From 3498a9c55bada61b57bc9a13ce5af67ecc222ae7 Mon Sep 17 00:00:00 2001 From: Jacek Kubica Date: Thu, 13 Apr 2006 17:10:36 +0000 Subject: [PATCH] *** empty log message *** --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/filesys.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 32223bd839..16a42e30e7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -7,7 +7,11 @@ For example: 2002-12-01 13:30 UTC+0100 Foo Bar */ + It operates on memo files only (.dbv) without tables (.dbf) + To create .DBV file use: + dbCreate( cFile, {}, "DBFBLOB" ) + * harbour/source/rdd/dbcmd.c * do not report error when empty structure table is passed to DBCREATE() CL5.3 allow to create even DBF files without any fields and because I can imagine some valid code which use it as a feature then I also diff --git a/harbour/source/rtl/filesys.c b/harbour/source/rtl/filesys.c index 40a3fd66a3..76bd9cdf63 100644 --- a/harbour/source/rtl/filesys.c +++ b/harbour/source/rtl/filesys.c @@ -1990,7 +1990,7 @@ HB_EXPORT USHORT hb_fsCurDirBuff( USHORT uiDrive, BYTE * pbyBuffer, ULONG ulLen } /* Strip the trailing (back)slash if there's one */ - if( strchr( OS_PATH_DELIMITER_LIST, pbyBuffer[ ulLen - 1 ] ) ) + if( ulLen && strchr( OS_PATH_DELIMITER_LIST, pbyStart[ ulLen - 1 ] ) ) ulLen--; if( ulLen && pbyBuffer != pbyStart )