2009-06-05 20:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbwin/win_prn1.c
    ! Fixed recently introduced editing mistake which 
      enabled it for WinCE.

  * contrib/hbcrypt/sha1.c
    ! Fixed poccarm warning (octal notation changed to hexa).
This commit is contained in:
Viktor Szakats
2009-06-05 18:59:41 +00:00
parent 47e7df8129
commit ce4631d02f
3 changed files with 13 additions and 1 deletions

View File

@@ -17,6 +17,14 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-06-05 20:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_prn1.c
! Fixed recently introduced editing mistake which
enabled it for WinCE.
* contrib/hbcrypt/sha1.c
! Fixed poccarm warning (octal notation changed to hexa).
2009-06-05 20:42 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* debian/copyright
! Synced with COPYING.

View File

@@ -142,7 +142,7 @@ void SHA1_Final(sha1_byte digest[SHA1_DIGEST_LENGTH], SHA_CTX *context) {
finalcount[i] = (sha1_byte)((context->count[(i >= 4 ? 0 : 1)]
>> ((3-(i & 3)) * 8) ) & 255); /* Endian independent */
}
SHA1_Update(context, (sha1_byte *)"\200", 1);
SHA1_Update(context, (sha1_byte *)"\x80", 1);
while ((context->count[0] & 504) != 448) {
SHA1_Update(context, (sha1_byte *)"\0", 1);
}

View File

@@ -75,6 +75,8 @@
#include "hbapi.h"
#include "hbapiitm.h"
#if defined(HB_OS_WIN) && !defined(HB_OS_WIN_CE)
#include <winspool.h>
#ifndef INVALID_FILE_SIZE
@@ -687,3 +689,5 @@ HB_FUNC( WIN_SETBKMODE )
{
hb_retnl( SetBkMode( win_HDC_par( 1 ), hb_parnl( 2 ) ) );
}
#endif