Error in ntdll/module.c?
r.kalbermatter at hccnet.nl
Sun Feb 18 07:18:42 CST 2007
Christian Iversen [mailto:chrivers at iversen-net.dk] wrote:
>The parameter order for LdrGetProcedureAddress is (Handle, Function,
>The file dlls/ntdll/module.c has the order as (Handle, Ordinal,
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.
More information about the wine-devel