[Mono-dev] [PATCH] System.Environment fixes for Windows
Miguel de Icaza
miguel at novell.com
Thu Dec 18 21:43:19 EST 2008
These are good to go in.
On Thu, 2008-12-18 at 16:04 -0500, Bill Holmes wrote:
> The attached patch fixes two problems we found System.Environment.
> Calling Environment.GetEnvironmentVariable ("IsNotSet",
> EnvironmentVariableTarget.User) causes a nre with mono on Windows.
> Calling Environment.SetEnvironmentVariable (...,
> EnvironmentVariableTarget.User) does not notify the OS that a variable
> has changed.
> See http://msdn.microsoft.com/en-us/library/ms682653(VS.85).aspx
> 2008-12-18 Bill Holmes <billholmes54 at gmail.com>
> * Environment.cs (GetEnvironmentVariable) : Avoiding an nre if
> the variable is not set.
> * Environment.cs (SetEnvironmentVariable) : Adding a call to
> internalBroadcastSettingChange to notify Windows that an environment
> variable has changed.
> * icall-def.h : Adding an internal call definition for
> * icall.c : Adding a Windows only implementation to broadcast a
> WM_SETTINGCHANGE when an environment variable has changed.
> Contributed under MIT/X11 license.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list