diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-02-04 21:39:18 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2014-02-04 21:39:18 (GMT) |
commit | f4ec989f677bea864fc7d7d4f7ab2e55a4eca865 (patch) | |
tree | 29a03d5e5252edb82b54e2b1e8b2acbc17032342 /win/tkWinX.c | |
parent | dab46a6705b54b0f5b2742335aaf4a8dcc8e1adc (diff) | |
download | tk-f4ec989f677bea864fc7d7d4f7ab2e55a4eca865.zip tk-f4ec989f677bea864fc7d7d4f7ab2e55a4eca865.tar.gz tk-f4ec989f677bea864fc7d7d4f7ab2e55a4eca865.tar.bz2 |
Add missing __stdcall (which crashes on win32)
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index a37fa0a..5457d43 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -171,7 +171,8 @@ TkGetServerInfo( if (!buffer[0]) { HANDLE handle = LoadLibraryW(L"NTDLL"); - int(*getversion)(void *) = (int(*)(void *))GetProcAddress(handle, "RtlGetVersion"); + __stdcall int(*getversion)(void *) = + (__stdcall int(*)(void *))GetProcAddress(handle, "RtlGetVersion"); os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); if (!getversion || getversion(&os)) { GetVersionExW(&os); |