From ebdd5086dea2ba246f283d3517b5d5065008c3fb Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 14 Dec 2009 12:52:48 +0000 Subject: [PATCH] 2009-12-14 13:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/win_prn2.c ! Missing hb_itemRelease() from prev commit. --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbwin/win_prn2.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 21b3e6c71a..1a8b31048a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-14 13:52 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbwin/win_prn2.c + ! Missing hb_itemRelease() from prev commit. + 2009-12-14 13:45 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/win_prn2.c + Eliminated rest of HB_TCHAR*() calls. diff --git a/harbour/contrib/hbwin/win_prn2.c b/harbour/contrib/hbwin/win_prn2.c index d5289c9d4d..9f42537396 100644 --- a/harbour/contrib/hbwin/win_prn2.c +++ b/harbour/contrib/hbwin/win_prn2.c @@ -268,7 +268,7 @@ HB_FUNC( WIN_PRINTERSTATUS ) if( hb_itemGetCLen( pPrinterName ) == 0 ) hb_GetDefaultPrinter( pPrinterName ); - if( hb_itemGetCLen( pPrinterName ) ) + if( hb_itemGetCLen( pPrinterName ) > 0 ) { void * hPrinterName; LPCTSTR lpPrinterName = HB_ITEMGETSTR( pPrinterName, &hPrinterName, NULL ); @@ -320,6 +320,8 @@ HB_FUNC( WIN_PRINTERSTATUS ) hb_strfree( hPrinterName ); } + hb_itemRelease( pPrinterName ); + hb_retnl( nStatus ); }