diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0313d67e76..f9eade1508 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2010-09-17 07:59 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/contrib/hbwin/win_rpc.c + * casting to pacify MinGW warnings + 2010-09-16 16:00 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/ideshortcuts.prg ! Demonstrated: how a QLabel can be intercepted for key events. diff --git a/harbour/contrib/hbwin/win_rpc.c b/harbour/contrib/hbwin/win_rpc.c index bfb4b04be9..706fbef077 100644 --- a/harbour/contrib/hbwin/win_rpc.c +++ b/harbour/contrib/hbwin/win_rpc.c @@ -95,18 +95,18 @@ HB_FUNC( WIN_UUIDCREATESTRING ) { TCHAR * tszUuid = NULL; UUID uuid; - + memset( &uuid, 0, sizeof( UUID ) ); - + s_pUuidCreate( &uuid ); - s_pUuidToString( &uuid, ( unsigned char ** ) &tszUuid ); - + s_pUuidToString( &uuid, ( unsigned char ** ) ( void * ) &tszUuid ); + if( tszUuid != NULL ) { HB_RETSTR( tszUuid ); - - s_pRpcStringFree( ( unsigned char ** ) &tszUuid ); + + s_pRpcStringFree( ( unsigned char ** ) ( void * ) &tszUuid ); } else hb_retc_null();