2007-11-20 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Tue, 20 Nov 2007 22:47:12 +0000 (22:47 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Tue, 20 Nov 2007 22:47:12 +0000 (22:47 -0000)
* Application.cs: Revert r89650, as it broke a common case to fix
an obscure case.  Fixes bug #342606.

svn path=/trunk/mcs/; revision=90044

mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

index 711321832e7705cca5cff780ce97df6e09ba654a..ba26caac69d3a485c3f7e17efeeadd1355196dc0 100644 (file)
@@ -242,7 +242,7 @@ namespace System.Windows.Forms
 
                public static string ExecutablePath {
                        get {
-                               return Path.GetFullPath (Process.GetCurrentProcess ().MainModule.FileName);
+                               return Assembly.GetEntryAssembly().Location;
                        }
                }
 
index 4c5a956dce3b07220cdaf901f13384a769a2f8b1..7e98a45d46185e17e77d65277234c33b1ffe7ea6 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
+
+       * Application.cs: Revert r89650, as it broke a common case to fix
+       an obscure case.  Fixes bug #342606.
+
 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
 
        * ThemeWin32Classic.cs: Fix extra space on end of tooltip.