> hbgetenv.c
> ========
>
> HB_BOOL hb_setenv( const char * szName, const char * szValue )
> {
> #if defined( HB_OS_WIN )
> {
> LPTSTR lpName = HB_TCHAR_CONVTO( szName );
> LPTSTR lpValue = HB_TCHAR_CONVTO( szValue );
> HB_BOOL bResult = ( SetEnvironmentVariable( lpName, lpValue ) != 0 );
> ...
>
> hbmk2.prg
> ========
>
> CASE _VAR_MODE_DELETE ; hb_SetEnv( tmp[ 2 ] ) ; EXIT
>
>
> See, const char * szValue , is never sent and is NULL in C.
> Also I do not see how a variable gets removed from list in this code.
> I will be wrong if an empty value nullifies it.
A NULL should delete it, but the TCHAR macros are
choking on NULL values.
Viktor
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour