[kernel/module.c] Return ERROR_PROC_NOT_FOUND for NULL hModule
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jul 11 08:20:16 CDT 2005
"Paul Vriens" <paul.vriens at xs4all.nl> wrote:
> Process Explorer tries to load a dll with LoadLibraryA. This fails and
> NULL is returned. PE is however still trying to do GetProcAddress on this
> (not loaded) dll. Windows returns ERROR_PROC_NOT_FOUND, we get into an
> exception.
>
> I will send a test tonight that confirms the above.
>
> Changelog
> Return ERROR_PROC_NOT_FOUND if hModule is NULL
Probably the test also should confirm whether it's a responsibility of
dlls/ntdll/loader.c,LdrGetProcedureAddress() to return STATUS_ENTRYPOINT_NOT_FOUND
which will be converted by GetProcAddress to ERROR_PROC_NOT_FOUND.
--
Dmitry.
More information about the wine-devel
mailing list