summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:35:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:35:27 (GMT)
commit857ad319e1e8ef85c537ede8d628c08de911f03f (patch)
tree5575fae1369cc63819f3589e02d3191a3d15afd1 /win/tkWinMenu.c
parent0af1f3e468baaf1b8cf6bc13452d1fc8f0a265f5 (diff)
downloadtk-857ad319e1e8ef85c537ede8d628c08de911f03f.zip
tk-857ad319e1e8ef85c537ede8d628c08de911f03f.tar.gz
tk-857ad319e1e8ef85c537ede8d628c08de911f03f.tar.bz2
Some bit of Windows 8.1 compatibility: See [http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx]
Diffstat (limited to 'win/tkWinMenu.c')
-rw-r--r--win/tkWinMenu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index cb40c50..48bc16b 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -3205,7 +3205,7 @@ SetDefaults(
int padding;
#endif
} nc;
- OSVERSIONINFO os;
+ OSVERSIONINFOW os;
/*
* Set all of the default options. The loop will terminate when we run out
@@ -3225,8 +3225,8 @@ SetDefaults(
nc.metrics.cbSize = sizeof(nc);
- os.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
- GetVersionEx(&os);
+ os.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
+ GetVersionExW(&os);
if (os.dwMajorVersion < 6) {
nc.metrics.cbSize -= sizeof(int);
}