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:
@@ -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
|
||||
|
||||
@@ -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() )
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user