[kernel/module.c] Return ERROR_PROC_NOT_FOUND for NULL hModule

Paul Vriens paul.vriens at xs4all.nl
Mon Jul 11 08:32:23 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.
>
>
Hi Dmitry,

how do I make sure that's the case.

Obviously a seperate test case for LdrGetProcedureAddress can be made but
that doesn't prove your question.

Cheers,

Paul.





More information about the wine-devel mailing list