2010-02-11 12:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbwin/wapi_wingdi.c
    ! Fixed return value of WAPI_SELECTOBJECT() again.
This commit is contained in:
Viktor Szakats
2010-02-11 11:37:58 +00:00
parent ace8a29b7b
commit 21ad108baf
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,10 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-02-11 12:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_wingdi.c
! Fixed return value of WAPI_SELECTOBJECT() again.
2010-02-11 12:32 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/direct.c
* int -> HB_SIZE

View File

@@ -628,7 +628,7 @@ HB_FUNC( WAPI_SELECTOBJECT )
{
/* TODO: Solve reference counting to 'h' handle. Also for returned one. */
if( bRegion )
wapi_ret_HANDLE( SelectObject( hDC, h ) );
hb_retnint( ( HB_PTRDIFF ) SelectObject( hDC, h ) );
else
hb_retl( SelectObject( hDC, h ) != NULL ); /* NOTE: We don't return a raw pointer. */
}