diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 75efa952a8..6775e25999 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2011-10-11 01:56 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/natmsg.c + ! fixed typo in recent commit + 2011-10-10 20:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/natmsg.c ! modified __NATISAFFIRM() and __NATISNEGATIVE() to work with diff --git a/harbour/src/rtl/natmsg.c b/harbour/src/rtl/natmsg.c index 8437b1319a..57a6d980ed 100644 --- a/harbour/src/rtl/natmsg.c +++ b/harbour/src/rtl/natmsg.c @@ -109,9 +109,9 @@ HB_FUNC( __NATISAFFIRM ) { PHB_CODEPAGE cdp = hb_vmCDP(); if( cdp ) - fIS = hb_cdpicmp( hb_parc( 1 ), nLen, szYesNo, nStr, cdp, HB_FALSE ); + fIS = hb_cdpicmp( hb_parc( 1 ), nLen, szYesNo, nStr, cdp, HB_FALSE ) == 0; else - fIS = hb_strnicmp( hb_parc( 1 ), szYesNo, nStr ); + fIS = hb_strnicmp( hb_parc( 1 ), szYesNo, nStr ) == 0; } } hb_retl( fIS ); @@ -136,9 +136,9 @@ HB_FUNC( __NATISNEGATIVE ) { PHB_CODEPAGE cdp = hb_vmCDP(); if( cdp ) - fIS = hb_cdpicmp( hb_parc( 1 ), nLen, szYesNo, nStr, cdp, HB_FALSE ); + fIS = hb_cdpicmp( hb_parc( 1 ), nLen, szYesNo, nStr, cdp, HB_FALSE ) == 0; else - fIS = hb_strnicmp( hb_parc( 1 ), szYesNo, nStr ); + fIS = hb_strnicmp( hb_parc( 1 ), szYesNo, nStr ) == 0; } } hb_retl( fIS );