2025-01-07 12:24 UTC+0100 Aleksander Czajczynski (hb fki.pl)

* src/common/hbver.c
    * indent cleanup

  * src/rtl/filesys.c
  * src/rtl/fssize.c
    ! restore dynamic calling of GetFileAttributesEx() on
      Windows (significant only on very old systems)
This commit is contained in:
Aleksander Czajczynski
2025-01-07 12:24:59 +01:00
parent 21ea321f0a
commit cb9888c76d
4 changed files with 15 additions and 6 deletions

View File

@@ -7,6 +7,15 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */
2025-01-07 12:24 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* src/common/hbver.c
* indent cleanup
* src/rtl/filesys.c
* src/rtl/fssize.c
! restore dynamic calling of GetFileAttributesEx() on
Windows (significant only on very old systems)
2025-01-02 14:33 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* config/global.mk
* config/win/clang-noauto.mk

View File

@@ -734,10 +734,10 @@ char * hb_verPlatform( void )
if( hb_iswin10() && ! s_iWine )
{
/* On Win10+ build number is more significant than Major Minor */
char szBuild[ 8 ];
hb_snprintf( szBuild, sizeof( szBuild ), ".%lu", ( DWORD ) s_iWinNT );
hb_strncat( pszPlatform, szBuild, PLATFORM_BUF_SIZE );
/* On Win10+ build number is more significant than Major Minor */
char szBuild[ 8 ];
hb_snprintf( szBuild, sizeof( szBuild ), ".%lu", ( DWORD ) s_iWinNT );
hb_strncat( pszPlatform, szBuild, PLATFORM_BUF_SIZE );
}
else if( hb_iswin2k() )
{

View File

@@ -1919,7 +1919,7 @@ HB_BOOL hb_fsGetFileTime( const char * pszFileName, long * plJulian, long * plMi
memset( &attrex, 0, sizeof( attrex ) );
if( GetFileAttributesEx( lpFileName, GetFileExInfoStandard, &attrex ) )
if( s_pGetFileAttributesEx( lpFileName, GetFileExInfoStandard, &attrex ) )
{
FILETIME local_ft;
SYSTEMTIME st;

View File

@@ -105,7 +105,7 @@ HB_FOFFSET hb_fsFSize( const char * pszFileName, HB_BOOL bUseDirEntry )
lpFileName = HB_FSNAMECONV( pszFileName, &lpFree );
memset( &attrex, 0, sizeof( attrex ) );
fResult = GetFileAttributesEx( lpFileName, GetFileExInfoStandard, &attrex ) &&
fResult = s_pGetFileAttributesEx( lpFileName, GetFileExInfoStandard, &attrex ) &&
( attrex.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) == 0;
hb_fsSetIOError( fResult, 0 );
if( lpFree )