2006-06-20 09:45 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu)

* harbour/source/rtl/gtwin/gtwin.c
   * harbour/source/rtl/gtwxt/gtwxt.c
     ! Possible (double) fix to properly handle embedded zero bytes
       when getting clipboard content.
This commit is contained in:
Viktor Szakats
2006-06-20 07:45:51 +00:00
parent 8414073d1c
commit c7f5e6eb5e
3 changed files with 11 additions and 5 deletions

View File

@@ -8,6 +8,12 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
* hidden for 3-rd party users hb_objGetMethod() and hb_objPopSuperCast()
If for some reason 3-rd party code will need these methods please
tell me in which case and I'll add necessary functions. Please
try to not use any non-public function. I strongly prefer to
add new public functions for which we will know that they are used
by 3-rd party code then create problems with binary compatibility
after updating local HVM functions.
2006-06-20 11:33 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu)

View File

@@ -1795,7 +1795,7 @@ static BOOL hb_gt_win_GetClipboard( char ** pszClipData, ULONG *pulLen )
lptstr = ( LPSTR ) GlobalLock( hglb );
if ( lptstr != NULL )
{
*pulLen = strlen( lptstr );
*pulLen = GlobalSize( hglb );
if( *pulLen )
{
@@ -1882,7 +1882,7 @@ static BOOL hb_gt_win_Info( int iType, PHB_GT_INFO pInfo )
{
pInfo->pResult = hb_itemPutCPtr( pInfo->pResult,
szClipboardData,
strlen( szClipboardData ) );
ulLen );
}
else
{

View File

@@ -1228,7 +1228,7 @@ static BOOL hb_gt_wvt_GetClipboard( char ** pszClipData, ULONG *pulLen )
lptstr = ( LPSTR ) GlobalLock( hglb );
if ( lptstr != NULL )
{
*pulLen = strlen( lptstr );
*pulLen = GlobalSize( hglb );
if( *pulLen )
{
@@ -1700,7 +1700,7 @@ static int hb_gt_wvt_mouse_CountButton( void )
{
HB_TRACE( HB_TR_DEBUG, ( "hb_gt_wvt_mouse_CountButton()") );
return( GetSystemMetrics( SM_CMOUSEBUTTONS ) ) ;
return( GetSystemMetrics( SM_CMOUSEBUTTONS ) ) ;
}
/* *********************************************************************** */
@@ -1989,7 +1989,7 @@ static BOOL hb_gt_wvt_Info( int iType, PHB_GT_INFO pInfo )
{
pInfo->pResult = hb_itemPutCPtr( pInfo->pResult,
szClipboardData,
strlen( szClipboardData ) );
ulLen );
}
else
{