* 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.
This commit is contained in:
Christopher Faylor
2008-05-23 15:33:03 +00:00
parent 1fc3031588
commit 7cd4542873
3 changed files with 9 additions and 5 deletions

View File

@@ -877,10 +877,9 @@ mount_info::from_fstab (bool user)
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'\\');