diff options
Diffstat (limited to 'winsup/cygwin/mount.cc')
-rw-r--r-- | winsup/cygwin/mount.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc index 5ecb63947..1d7d7cda7 100644 --- a/winsup/cygwin/mount.cc +++ b/winsup/cygwin/mount.cc @@ -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'\\'); |