From 123b86fe4a551a767b6f6e743295ffb333b6b6e1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 31 Oct 2023 13:13:06 +0100 Subject: [PATCH] ntdll: Remove an unused global variable. --- dlls/ntdll/unix/loader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 0b83d11d373..c442f7f6be2 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -389,7 +389,6 @@ const char **dll_paths = NULL; const char **system_dll_paths = NULL; const char *user_name = NULL; SECTION_IMAGE_INFORMATION main_image_info = { NULL }; -static const IMAGE_EXPORT_DIRECTORY *ntdll_exports; /* adjust an array of pointers to make them into RVAs */ static inline void fixup_rva_ptrs( void *array, BYTE *base, unsigned int count ) @@ -1759,12 +1758,13 @@ static void load_ntdll_functions( HMODULE module ) { void **p__wine_unix_call_dispatcher; unixlib_handle_t *p__wine_unixlib_handle; + const IMAGE_EXPORT_DIRECTORY *exports; - ntdll_exports = get_module_data_dir( module, IMAGE_FILE_EXPORT_DIRECTORY, NULL ); - assert( ntdll_exports ); + exports = get_module_data_dir( module, IMAGE_DIRECTORY_ENTRY_EXPORT, NULL ); + assert( exports ); #define GET_FUNC(name) \ - if (!(p##name = (void *)find_named_export( module, ntdll_exports, #name ))) \ + if (!(p##name = (void *)find_named_export( module, exports, #name ))) \ ERR( "%s not found\n", #name ) GET_FUNC( DbgUiRemoteBreakin ); -- 2.11.4.GIT