Error in ntdll/module.c?

Rolf Kalbermatter r.kalbermatter at
Sun Feb 18 07:18:42 CST 2007

Christian Iversen [mailto:chrivers at] wrote:

>According to:
>The parameter order for LdrGetProcedureAddress is (Handle, Function, 
>Ordinal, Address)
>The file dlls/ntdll/module.c has the order as (Handle, Ordinal, 
>Function, Address)

Ok. I took a look at the call sequence of this function in a native
kernel32.dll and the second parameter is initialized with RtlInitString.
So I guess the parameter order as on that web site would be correct.

Having looked at the particular assembly code obviously excludes me
from doing any work on this part anymore.

As to the current implemenation I'm not sure that makes any difference
since most undocumented APIs are unlikely to be used by applications.
And since ntdll and kernel32 are both also Wine specific and therefore
can't be replaced by Windows ones this won't matter either it would seem.

You can try to post a proper patch to both kernel32 and ntdll to
wine-patches and then let Alexandre decide if he wants to apply it.

Rolf Kalbermatter

More information about the wine-devel mailing list