2009-02-10 04:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/classes.c
* covered some old functions marked as deprecated long time ago
by HB_LEGACY_LEVEL2 macro
* harbour/source/rtl/hbgtcore.c
* harbour/contrib/hbct/ctwin.c
* harbour/contrib/hbct/keyset.c
* harbour/contrib/hbct/misc3.c
* harbour/contrib/hbnf/numlock.c
* harbour/contrib/hbnf/shift.c
* harbour/contrib/hbnf/alt.c
* harbour/contrib/hbnf/ctrl.c
* harbour/contrib/hbnf/caplock.c
* use memset( >Info, 0, sizeof( gtInfo ) ); to initialize
HB_GT_INFO structure - it also fixes possible problems with
uninitialized pNewVal2 member in few cases.
This commit is contained in:
@@ -8,6 +8,24 @@
|
||||
2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
|
||||
*/
|
||||
|
||||
2009-02-10 04:15 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/vm/classes.c
|
||||
* covered some old functions marked as deprecated long time ago
|
||||
by HB_LEGACY_LEVEL2 macro
|
||||
|
||||
* harbour/source/rtl/hbgtcore.c
|
||||
* harbour/contrib/hbct/ctwin.c
|
||||
* harbour/contrib/hbct/keyset.c
|
||||
* harbour/contrib/hbct/misc3.c
|
||||
* harbour/contrib/hbnf/numlock.c
|
||||
* harbour/contrib/hbnf/shift.c
|
||||
* harbour/contrib/hbnf/alt.c
|
||||
* harbour/contrib/hbnf/ctrl.c
|
||||
* harbour/contrib/hbnf/caplock.c
|
||||
* use memset( >Info, 0, sizeof( gtInfo ) ); to initialize
|
||||
HB_GT_INFO structure - it also fixes possible problems with
|
||||
uninitialized pNewVal2 member in few cases.
|
||||
|
||||
2009-02-10 02:53 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
|
||||
* ChangeLog
|
||||
* contrib/rddsql/sddmy/common.mak
|
||||
|
||||
@@ -1815,7 +1815,7 @@ static int hb_ctw_gt_Alert( PHB_GT pGT, PHB_ITEM pMessage, PHB_ITEM pOptions,
|
||||
else
|
||||
{
|
||||
HB_GT_INFO gtInfo;
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
HB_GTSELF_INFO( pGT, HB_GTI_FULLSCREEN, >Info );
|
||||
fScreen = gtInfo.pResult && hb_itemGetL( gtInfo.pResult );
|
||||
HB_GTSELF_INFO( pGT, HB_GTI_KBDSUPPORT, >Info );
|
||||
|
||||
@@ -61,7 +61,7 @@ static void SetGet( int iFlag )
|
||||
int iState = 0, iNewState;
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
if( gtInfo.pResult )
|
||||
|
||||
@@ -59,8 +59,7 @@ HB_FUNC( KBDSTAT )
|
||||
int iRet = 0;
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = NULL;
|
||||
gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ HB_FUNC( FT_ALT )
|
||||
{
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
hb_retl( ( hb_itemGetNI( gtInfo.pResult ) & HB_GTI_KBD_ALT ) != 0 );
|
||||
if( gtInfo.pResult )
|
||||
|
||||
@@ -70,7 +70,7 @@ HB_FUNC( FT_CAPLOCK )
|
||||
int iState = 0, iNewState;
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
if( gtInfo.pResult )
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ HB_FUNC( FT_CTRL )
|
||||
{
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
hb_retl( ( hb_itemGetNI( gtInfo.pResult ) & HB_GTI_KBD_CTRL ) != 0 );
|
||||
if( gtInfo.pResult )
|
||||
|
||||
@@ -81,7 +81,7 @@ HB_FUNC( FT_NUMLOCK )
|
||||
int iState = 0, iNewState;
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
if( gtInfo.pResult )
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ HB_FUNC( FT_SHIFT )
|
||||
{
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
hb_gtInfo( HB_GTI_KBDSHIFTS, >Info );
|
||||
hb_retl( ( hb_itemGetNI( gtInfo.pResult ) & HB_GTI_KBD_SHIFT ) != 0 );
|
||||
if( gtInfo.pResult )
|
||||
|
||||
@@ -1632,7 +1632,7 @@ static int hb_gt_def_Alert( PHB_GT pGT, PHB_ITEM pMessage, PHB_ITEM pOptions,
|
||||
BYTE * pBuffer = NULL;
|
||||
HB_GT_INFO gtInfo;
|
||||
|
||||
gtInfo.pNewVal = gtInfo.pNewVal2 = gtInfo.pResult = NULL;
|
||||
memset( >Info, 0, sizeof( gtInfo ) );
|
||||
|
||||
HB_GTSELF_INFO( pGT, HB_GTI_FULLSCREEN, >Info );
|
||||
if( gtInfo.pResult )
|
||||
|
||||
@@ -4832,7 +4832,7 @@ void hb_clsAssociate( USHORT usClassH )
|
||||
hb_itemReturnRelease( pSelf );
|
||||
}
|
||||
|
||||
#if 1
|
||||
#ifdef HB_LEGACY_LEVEL2
|
||||
/*
|
||||
* __CLS_PARAM() and __CLS_PAR00() functions are only for backward binary
|
||||
* compatibility. They will be removed in the future so please do not use
|
||||
@@ -4884,7 +4884,6 @@ BOOL hb_objGetpMethod( PHB_ITEM pObject, PHB_SYMB pMessage )
|
||||
{
|
||||
return hb_objHasMessage( pObject, pMessage->pDynSym );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user