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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user