2008-01-18 01:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbzlib/hbmzip.c
* cast result of hb_fsGetOsHandle() to expected OS handle type
- thanks to Jorge
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2008-01-18 01:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/contrib/hbzlib/hbmzip.c
|
||||
* cast result of hb_fsGetOsHandle() to expected OS handle type
|
||||
- thanks to Jorge
|
||||
|
||||
2008-01-18 01:17 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/contrib/hbzlib/zip.c
|
||||
* harbour/contrib/hbzlib/unzip.c
|
||||
|
||||
@@ -577,7 +577,7 @@ static int hb_zipStoreFile( zipFile hZip, char* szFileName, char* szName )
|
||||
FILETIME ftutc, ft;
|
||||
SYSTEMTIME st;
|
||||
|
||||
if( GetFileTime( hb_fsGetOsHandle( hFile ), NULL, NULL, &ftutc ) &&
|
||||
if( GetFileTime( ( HANDLE ) hb_fsGetOsHandle( hFile ), NULL, NULL, &ftutc ) &&
|
||||
FileTimeToLocalFileTime( &ftutc, &ft ) &
|
||||
FileTimeToSystemTime( &ft, &st ) )
|
||||
{
|
||||
@@ -711,7 +711,7 @@ static int hb_unzipExtractCurrentFile( unzFile hUnzip, char* szFileName )
|
||||
if( SystemTimeToFileTime( &st, &ft ) &&
|
||||
LocalFileTimeToFileTime( &ft, &ftutc ) )
|
||||
{
|
||||
SetFileTime( hb_fsGetOsHandle( hFile ), &ftutc, &ftutc, &ftutc );
|
||||
SetFileTime( ( HANDLE ) hb_fsGetOsHandle( hFile ), &ftutc, &ftutc, &ftutc );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user