find handle based on cygwin1.dll.
* path.cc (symlink_info::check): Remove unused variable.
+2008-05-23 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * mount.cc (mount_info::from_fstab): Use cygwin_hmodule rather than
+ trying to find handle based on cygwin1.dll.
+
+ * path.cc (symlink_info::check): Remove unused variable.
+
2008-05-22 Corinna Vinschen <corinna@vinschen.de>
* shared.cc (open_shared): Fix comments. Fix a condition which has
PWCHAR path = path_buf;
PWCHAR w;
- if (!GetModuleFileNameW (GetModuleHandleW (L"cygwin1.dll"),
- path, NT_MAX_PATH))
+ if (!GetModuleFileNameW (cygwin_hmodule, path, NT_MAX_PATH))
{
- debug_printf ("GetModuleFileNameW, %E");
+ debug_printf ("GetModuleFileNameW(%p, path, %u), %E", cygwin_hmodule, NT_MAX_PATH);
return false;
}
w = wcsrchr (path, L'\\');
FILE_BASIC_INFORMATION fbi;
NTSTATUS status;
IO_STATUS_BLOCK io;
- bool no_ea = false;
error = 0;
get_nt_native_path (suffix.path, upath, pflags & MOUNT_ENC);
/* No right to access EAs or EAs not supported? */
if (status == STATUS_ACCESS_DENIED || status == STATUS_EAS_NOT_SUPPORTED)
{
- no_ea = true;
/* If EAs are not supported, there's no sense to check them again
whith suffixes attached. So we set eabuf/easize to 0 here once. */
if (status == STATUS_EAS_NOT_SUPPORTED)