summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2014-02-04 21:40:35 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2014-02-04 21:40:35 (GMT)
commita4503c5f15d636b24390e512953ae5c70cf772f3 (patch)
tree9a29f203d113366ca3cc912b23adf30a3f5773b0 /win
parent09b083024fbc80906aa447c03ece5854d9e04474 (diff)
parent5a55994e4713a14144fc6d29b3f8a129671ff478 (diff)
downloadtk-a4503c5f15d636b24390e512953ae5c70cf772f3.zip
tk-a4503c5f15d636b24390e512953ae5c70cf772f3.tar.gz
tk-a4503c5f15d636b24390e512953ae5c70cf772f3.tar.bz2
Add missing __stdcall (which crashes on win32)
FossilOrigin-Name: 49309caa82456b06324c494b450843756d318d73
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);