From d9e9c7b5a78ccc3db84b51aad533c1d685ac2c50 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 21 Nov 2009 12:44:13 +0000 Subject: * globals.cc (ro_u_dll): New R/O unicode string. * syscalls.cc (nt_path_has_executable_suffix): Add ro_u_dll to blessed_executable_suffixes array. Explain why. --- winsup/cygwin/syscalls.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winsup/cygwin/syscalls.cc') diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 7a4f239b8..17b33c5ce 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1651,6 +1651,12 @@ nt_path_has_executable_suffix (PUNICODE_STRING upath) const PUNICODE_STRING blessed_executable_suffixes[] = { &ro_u_com, + &ro_u_dll, /* Messy, messy. Per MSDN, the GetBinaryType function is + supposed to return with ERROR_BAD_EXE_FORMAT. if the file + is a DLL. On 64-bit Windows, this works as expected for + 32-bit and 64-bit DLLs. On 32-bit Windows this only works + for 32-bit DLLs. For 64-bit DLLs, 32-bit Windows returns + true with the type set to SCS_64BIT_BINARY. */ &ro_u_exe, &ro_u_scr, &ro_u_sys, -- cgit v1.2.3