2009-11-24 16:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/fscopy.c
! Fixed to use the same file opening method as in __COPYFILE().
This should fix creating zero byte file on OS/2 when the source
and target file is the same.
; Please test.
* contrib/hbwin/win_prn3.c
* Minor.
This commit is contained in:
@@ -17,6 +17,16 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-11-24 16:57 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* src/rtl/fscopy.c
|
||||
! Fixed to use the same file opening method as in __COPYFILE().
|
||||
This should fix creating zero byte file on OS/2 when the source
|
||||
and target file is the same.
|
||||
; Please test.
|
||||
|
||||
* contrib/hbwin/win_prn3.c
|
||||
* Minor.
|
||||
|
||||
2009-11-24 16:48 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/vm/dlmalloc.c
|
||||
% use harbour spin locks if available by default in all builds
|
||||
|
||||
@@ -258,7 +258,7 @@ HB_FUNC( WIN_PRINTERSETDEFAULT )
|
||||
HB_TCHAR_FREE( lpPrinterName );
|
||||
}
|
||||
else
|
||||
hb_retl( FALSE );
|
||||
hb_retl( HB_FALSE );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -66,9 +66,9 @@ BOOL hb_fsCopy( const char * pszSource, const char * pszDest )
|
||||
HB_FHANDLE fhndSource;
|
||||
HB_FHANDLE fhndDest;
|
||||
|
||||
if( ( fhndSource = hb_fsOpen( pszSource, FO_READ | FO_DENYNONE ) ) != FS_ERROR )
|
||||
if( ( fhndSource = hb_fsExtOpen( pszSource, NULL, FO_READ | FXO_DEFAULTS | FXO_SHARELOCK, NULL, NULL ) ) != FS_ERROR )
|
||||
{
|
||||
if( ( fhndDest = hb_fsCreate( pszDest, FC_NORMAL ) ) != FS_ERROR )
|
||||
if( ( fhndDest = hb_fsExtOpen( pszDest, NULL, FXO_TRUNCATE | FO_READWRITE | FO_EXCLUSIVE | FXO_DEFAULTS | FXO_SHARELOCK, NULL, NULL ) ) != FS_ERROR )
|
||||
{
|
||||
#if defined( HB_OS_UNIX )
|
||||
struct stat struFileInfo;
|
||||
|
||||
Reference in New Issue
Block a user