2011-05-09 15:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* src/rtl/net.c
    ! NETNAME(): fixed potential GPF on linux/watcom builds
    ! HB_USERNAME(): fixed potential GPF on *nix and os2 builds
    ; Pls chk me
This commit is contained in:
Viktor Szakats
2011-05-09 13:55:12 +00:00
parent a876c981d9
commit 27340d85d2
2 changed files with 18 additions and 2 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-05-09 15:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/rtl/net.c
! NETNAME(): fixed potential GPF on linux/watcom builds
! HB_USERNAME(): fixed potential GPF on *nix and os2 builds
; Pls chk me
2011-05-09 15:25 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/wapi_misc.c
! trying to make hbwapi_LoadLibrarySystem() really safe

View File

@@ -224,10 +224,20 @@ char * hb_username( void )
HB_FUNC( NETNAME )
{
hb_retc_buffer( ( char * ) hb_osDecodeCP( hb_netname(), NULL, NULL ) );
char * buffer = hb_netname();
if( buffer )
hb_retc_buffer( ( char * ) hb_osDecodeCP( buffer, NULL, NULL ) );
else
hb_retc_null();
}
HB_FUNC( HB_USERNAME )
{
hb_retc_buffer( ( char * ) hb_osDecodeCP( hb_username(), NULL, NULL ) );
char * buffer = hb_username();
if( buffer )
hb_retc_buffer( ( char * ) hb_osDecodeCP( buffer, NULL, NULL ) );
else
hb_retc_null();
}