inet_{ntop|pton} implementation
Jarosław Staniek
js at iidea.pl
Thu Jan 24 18:59:25 CET 2008
Christian Ehrlicher said the following, On 2008-01-24 17:31:
> Jarosław Staniek schrieb:
>> Hello
>> In kdewin32/serc/inet.c we're loading ws2_32.dll library and try to resolve
>> inet_{ntop|pton} symbols. After switching trying more strict PSDK than the one
>> from msvc2k3, namely vcee2k5sp1 (vista), I have encountered calling convention
>> failure while calling s_wsock_inet_pton(af, src, dst):
>>
>> "Run-Time Check Failure #0 - The value of ESP was not properly saved across a
>> function call. This is usually a result of calling a function declared with
>> one calling convention with a function pointer declared with a different
>> calling convention."
>>
>> I am thinking about disabling the code that tries to use "system"
>> implementation of the functions in case we wont resolve the problem.
>>
>> Any idea? (Christian?)
>>
> Please check if the signatures are correct - I can't test it right now.
How to check them? depends.exe or dumpbin return just names.
Perhaps it's __cdecl vs __stdcall issue?
> I'll try to add better implementations - already found something but
> needs some testing.
I've seen BSD-licensed implementations somewhere. Have you used something like
that?
--
regards / pozdrawiam, Jaroslaw Staniek
Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
KDE Libraries for MS Windows (http://windows.kde.org)
More information about the Kde-windows
mailing list