DLL, not the path of the application.
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.
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;