mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
ntdll: Remove some unnecessary NULL checks for current_importer.
current_importer is now set by all callers of build_import_name, find_forwarded_export, and find_ordinal_export.
This commit is contained in:
parent
c17600b062
commit
70c7ad699e
1 changed files with 2 additions and 2 deletions
|
@ -825,7 +825,7 @@ static NTSTATUS build_import_name( WCHAR buffer[256], const char *import, int le
|
|||
{
|
||||
const API_SET_NAMESPACE *map = NtCurrentTeb()->Peb->ApiSetMap;
|
||||
const API_SET_NAMESPACE_ENTRY *entry;
|
||||
const WCHAR *host = current_importer ? current_importer->modref->ldr.BaseDllName.Buffer : NULL;
|
||||
const WCHAR *host = current_importer->modref->ldr.BaseDllName.Buffer;
|
||||
UNICODE_STRING str;
|
||||
|
||||
while (len && import[len-1] == ' ') len--; /* remove trailing spaces */
|
||||
|
@ -1009,7 +1009,7 @@ static FARPROC find_forwarded_export( HMODULE module, const char *forward, LPCWS
|
|||
if (load_dll( load_path, mod_name, 0, &wm, imp->system ) == STATUS_SUCCESS &&
|
||||
!(wm->ldr.Flags & LDR_DONT_RESOLVE_REFS))
|
||||
{
|
||||
if (!imports_fixup_done && current_importer)
|
||||
if (!imports_fixup_done)
|
||||
{
|
||||
add_module_dependency( current_importer->modref->ldr.DdagNode, wm->ldr.DdagNode );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue