"Ylia K" k_ilya@ukr.net wrote:
I'm wondering how your patch works at all, the call should smash the stack since it misses WINAPI modifier.
On Mon, 26 Apr 2004 23:50:35 +0900, Dmitry Timoshkov wrote:
I'm wondering how your patch works at all, the call should smash the stack since it misses WINAPI modifier.
In some circumstances apps can survive stack corruption caused by incorrect calling conventions. There was a good entry in Raymond Chens blog about this a few months ago, explaining why and how Windows repairs the stack in particular situations.
"Mike Hearn" mh@codeweavers.com wrote:
Filip Navara already pointed out to me privately that since GetConsoleWindow takes no params there should not be any problem with calling conventions used.
Anyway WINAPI is mandatory for GetConsoleWindow in order to at least get correct stdcall decoration in an import library generated under MinGW.
-----Original Message----- From: "Dmitry Timoshkov" dmitry@baikal.ru To: "Ylia K" k_ilya@ukr.net Date: Mon, 26 Apr 2004 23:50:35 +0900 Subject: Re: Add stub function HWND GetConsoleWindow()
Yes I missed it :( But it works for me somehow! Though this function is already added in latest release, without my patch (only to .spec & .c , not ot wincon.h)
---------------- Best Regards, Ilya Korniyko