From 4d75ff9c201819a18207210c04f9ddfbba15c2ca Mon Sep 17 00:00:00 2001 From: Mindaugas Kavaliauskas Date: Thu, 26 Mar 2009 12:13:27 +0000 Subject: [PATCH] 2009-03-26 14:10 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * harbour/contrib/hbole/olecore.c * fixed compile time warning --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbole/olecore.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0025f06fea..712229c6fa 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-03-26 14:10 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + * harbour/contrib/hbole/olecore.c + * fixed compile time warning + 2009-03-25 23:21 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/pp/ppcore.c ! fixed line number set for C preprocessor in #pragma begindump diff --git a/harbour/contrib/hbole/olecore.c b/harbour/contrib/hbole/olecore.c index a9220cb92c..07ece81186 100644 --- a/harbour/contrib/hbole/olecore.c +++ b/harbour/contrib/hbole/olecore.c @@ -113,7 +113,7 @@ static char* WideToAnsi( wchar_t* szWide ) char* szString; iLen = WideCharToMultiByte( CP_ACP, 0, szWide, -1, NULL, 0, NULL, NULL ); - szString = hb_xgrab( ( iLen + 1 ) * sizeof( char ) ); + szString = ( char* ) hb_xgrab( ( iLen + 1 ) * sizeof( char ) ); WideCharToMultiByte( CP_ACP, 0, szWide, -1, szString, iLen, NULL, NULL ); return szString; }