* 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:
@@ -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'\\');
|
||||
|
Reference in New Issue
Block a user