Alexandre Julliard : makefiles: Install PE fake dlls in the architecture-specific directory.
Alexandre Julliard
julliard at winehq.org
Mon Apr 26 15:51:32 CDT 2021
Module: wine
Branch: master
Commit: 893febda143ccf4e4499d411fd28ab2f225aea09
URL: https://source.winehq.org/git/wine.git/?a=commit;h=893febda143ccf4e4499d411fd28ab2f225aea09
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 26 16:56:34 2021 +0200
makefiles: Install PE fake dlls in the architecture-specific directory.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/loader.c | 6 ------
dlls/setupapi/fakedll.c | 6 ------
tools/makedep.c | 2 +-
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 85ae6aac15f..b76a8137a1b 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -2669,12 +2669,6 @@ static NTSTATUS find_builtin_without_file( const WCHAR *name, UNICODE_STRING *ne
status = open_dll_file( new_name, pwm, mapping, image_info, id );
if (status == STATUS_IMAGE_MACHINE_TYPE_MISMATCH) found_image = TRUE;
else if (status != STATUS_DLL_NOT_FOUND) goto done;
- new_name->Length = len;
- RtlAppendUnicodeToString( new_name, L"\\fakedlls\\" );
- RtlAppendUnicodeToString( new_name, name );
- status = open_dll_file( new_name, pwm, mapping, image_info, id );
- if (status == STATUS_IMAGE_MACHINE_TYPE_MISMATCH) found_image = TRUE;
- else if (status != STATUS_DLL_NOT_FOUND) goto done;
RtlFreeUnicodeString( new_name );
}
if (found_image) status = STATUS_IMAGE_MACHINE_TYPE_MISMATCH;
diff --git a/dlls/setupapi/fakedll.c b/dlls/setupapi/fakedll.c
index 68d0bd0bc69..203d7c393ce 100644
--- a/dlls/setupapi/fakedll.c
+++ b/dlls/setupapi/fakedll.c
@@ -474,9 +474,6 @@ static void *load_fake_dll( const WCHAR *name, SIZE_T *size )
if ((res = read_file( ptr, &data, size ))) break;
ptr = prepend( file + pos, path, lstrlenW(path) );
if ((res = read_file( ptr, &data, size ))) break;
- ptr = prepend( file + pos, L"\\fakedlls", 9 );
- ptr = prepend( ptr, path, lstrlenW(path) );
- if ((res = read_file( ptr, &data, size ))) break;
}
done:
@@ -1042,9 +1039,6 @@ static BOOL create_wildcard_dlls( const WCHAR *dirname, const WCHAR *wildcard, B
install_lib_dir( dest, file, wildcard, NULL, delete );
lstrcpyW( file, path );
install_lib_dir( dest, file, wildcard, NULL, delete );
- lstrcpyW( file, path );
- lstrcatW( file, L"\\fakedlls" );
- install_lib_dir( dest, file, wildcard, NULL, delete );
}
HeapFree( GetProcessHeap(), 0, file );
HeapFree( GetProcessHeap(), 0, dest );
diff --git a/tools/makedep.c b/tools/makedep.c
index a6d525a92e8..0092f22b3b0 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -3315,7 +3315,7 @@ static void output_module( struct makefile *make )
add_install_rule( make, make->module, strmake( "%s%s", make->module, dll_ext ),
strmake( "p$(dlldir)/%s%s", make->module, dll_ext ));
add_install_rule( make, make->module, strmake( "%s.fake", make->module ),
- strmake( "d$(dlldir)/fakedlls/%s", make->module ));
+ strmake( "d%s/%s", pe_dir, make->module ));
output( "%s%s %s.fake:", module_path, dll_ext, module_path );
}
else
More information about the wine-cvs
mailing list