Skip to content

Commit 9e783a1

Browse files
committed
2025-03-20 06:30 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/cdpapihb.c ! fixed hb_transalte() to not clear passed string when neither CPIN nor CPOUT is set * src/rtl/hbgtcore.c ! fixed hb_gtAttach() to properly work with empty GT pointer
1 parent 1a4c4e6 commit 9e783a1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ChangeLog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
Entries may not always be in chronological/commit order.
88
See license at the end of file. */
99

10+
2025-03-20 06:30 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
11+
* src/rtl/cdpapihb.c
12+
! fixed hb_transalte() to not clear passed string
13+
when neither CPIN nor CPOUT is set
14+
15+
* src/rtl/hbgtcore.c
16+
! fixed hb_gtAttach() to properly work with empty GT pointer
17+
1018
2025-02-21 11:16 UTC+0100 Aleksander Czajczynski (hb fki.pl)
1119
* contrib/hbcurl/hbcurl.hbp
1220
+ added Windows architecture specific libcurl names:

src/rtl/cdpapihb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ HB_FUNC( HB_TRANSLATE )
174174
const char * szIdIn = hb_parc( 2 );
175175
const char * szIdOut = hb_parc( 3 );
176176

177-
if( nLen && ( szIdIn || szIdOut ) )
177+
if( nLen )
178178
{
179179
PHB_CODEPAGE cdpIn = szIdIn ? hb_cdpFindExt( szIdIn ) : hb_vmCDP();
180180
PHB_CODEPAGE cdpOut = szIdOut ? hb_cdpFindExt( szIdOut ) : hb_vmCDP();

src/rtl/hbgtcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3883,7 +3883,7 @@ void hb_gtRelease( void * hGT )
38833883

38843884
void hb_gtAttach( void * hGT )
38853885
{
3886-
if( hGT && hGT != hb_stackGetGT() )
3886+
if( hGT != hb_stackGetGT() )
38873887
{
38883888
hb_gtRelease( NULL );
38893889
hb_stackSetGT( hGT );

0 commit comments

Comments
 (0)