summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/path.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 190ce3fcd..3d788d0be 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2008-04-03 Corinna Vinschen <corinna@vinschen.de>
+ * path.cc (mount_info::from_fstab): Get module path name of the Cygwin
+ DLL, not the path of the application.
+
+2008-04-03 Corinna Vinschen <corinna@vinschen.de>
+
Cleanup.
* exceptions.cc (windows_system_directory): Make static. Convert to
WCHAR.
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index c4da23c8f..6d4163582 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -2430,7 +2430,8 @@ mount_info::from_fstab (bool user)
PWCHAR path = tp.w_get ();
PWCHAR w;
- if (!GetModuleFileNameW (NULL, path, NT_MAX_PATH))
+ if (!GetModuleFileNameW (GetModuleHandleW (L"cygwin1.dll"),
+ path, NT_MAX_PATH))
{
debug_printf ("GetModuleFileNameW, %E");
return false;