From 5d809c61c4c2ed0c2ce13d170588e997e1e8d0e3 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 18 Jan 2008 00:39:37 +0000 Subject: [PATCH] 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 --- harbour/ChangeLog | 5 +++++ harbour/contrib/hbzlib/hbmzip.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index fbb2ab8f54..8e645e2503 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +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 diff --git a/harbour/contrib/hbzlib/hbmzip.c b/harbour/contrib/hbzlib/hbmzip.c index 215513bedd..2d6b7dfbfe 100644 --- a/harbour/contrib/hbzlib/hbmzip.c +++ b/harbour/contrib/hbzlib/hbmzip.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