From 81e98baf8142a92dc0749b0f201a2d9b8cdb270c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 28 Jul 2007 16:08:45 +0000 Subject: * ntdll.h (RtlEqualUnicodePathPrefix): Rename from RtlEqualPathPrefix. (RtlEqualUnicodePathSuffix): Rename from RtlEqualPathSuffix. * fhandler_disk_file.cc (fhandler_disk_file::link): Accommodate above change. --- winsup/cygwin/fhandler_disk_file.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/fhandler_disk_file.cc') diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index ef46beeaf..680d7bd04 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1051,9 +1051,10 @@ fhandler_disk_file::link (const char *newpath) newpc.check (newpath, PC_SYM_NOFOLLOW); } else if (!pc.isdir () - && RtlEqualPathSuffix (pc.get_nt_native_path (), L".exe", TRUE) - && !RtlEqualPathSuffix (newpc.get_nt_native_path (), L".exe", - TRUE)) + && RtlEqualUnicodePathSuffix (pc.get_nt_native_path (), + L".exe", TRUE) + && !RtlEqualUnicodePathSuffix (newpc.get_nt_native_path (), + L".exe", TRUE)) { /* Executable hack. */ stpcpy (stpcpy (new_buf, newpath), ".exe"); @@ -1066,8 +1067,7 @@ fhandler_disk_file::link (const char *newpath) NTSTATUS status; OBJECT_ATTRIBUTES attr; IO_STATUS_BLOCK io; - status = NtOpenFile (&fh, 0, - pc.get_object_attr (attr, sec_none_nih), &io, + status = NtOpenFile (&fh, 0, pc.get_object_attr (attr, sec_none_nih), &io, FILE_SHARE_VALID_FLAGS, FILE_OPEN_FOR_BACKUP_INTENT | FILE_OPEN_REPARSE_POINT); if (!NT_SUCCESS (status)) -- cgit v1.2.3