Any problem with this one Alexandre?
On Thu, 04 Nov 2004 01:00:37 +0000, Mike Hearn wrote:
- Always add .dll extension when loading modules
Index: loader.c
RCS file: /home/wine/wine/dlls/ntdll/loader.c,v retrieving revision 1.78 diff -u -p -r1.78 loader.c --- loader.c 11 Oct 2004 20:59:06 -0000 1.78 +++ loader.c 4 Nov 2004 00:56:48 -0000 @@ -1432,12 +1432,18 @@ static NTSTATUS find_dll_file( const WCH len = nt_name.Length - 4*sizeof(WCHAR); /* for ??\ prefix */ if (len >= *size) goto overflow; memcpy( filename, nt_name.Buffer + 4, len + sizeof(WCHAR) );
- /* do we need to add the .dll extension? */ if (file_part && !strchrW( file_part, '.' )) { len += sizeof(dllW) - sizeof(WCHAR); if (len >= *size) goto overflow; strcatW( filename, dllW );
RtlFreeUnicodeString( &nt_name );
if (!RtlDosPathNameToNtPathName_U( filename, &nt_name, &file_part, NULL ))
}return STATUS_NO_MEMORY;
- if (!(*pwm = find_fullname_module( filename ))) { attr.Length = sizeof(attr);
Mike Hearn mike@navi.cx writes:
Any problem with this one Alexandre?
It needs to be integrated in the normal code flow, there's no reason to do the RtlDosPathNameToNtPathName twice.