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:
Przemyslaw Czerpak
2008-01-18 00:39:37 +00:00
parent 8bae6cb2b9
commit 5d809c61c4
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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