summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 21:40:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 21:40:35 (GMT)
commit648a206e4e84223452459789db5cec14c7cb6fbe (patch)
tree9a29f203d113366ca3cc912b23adf30a3f5773b0 /win
parentde445d487d5a80ad9c8a49d28f8db7d6a24b463e (diff)
parent6f4eb41b7618b4783184246c8a8484cbbd0f5aec (diff)
downloadtk-648a206e4e84223452459789db5cec14c7cb6fbe.zip
tk-648a206e4e84223452459789db5cec14c7cb6fbe.tar.gz
tk-648a206e4e84223452459789db5cec14c7cb6fbe.tar.bz2
Add missing __stdcall (which crashes on win32)
Diffstat (limited to 'win')
-rw-r--r--win/tkWinX.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 3857691..49ba438 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -125,7 +125,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);