"Paul Vriens" <[EMAIL PROTECTED]> 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.


Reply via email to