summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:39:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-20 15:39:06 (GMT)
commitda70d24c1529ed14e9b303d054436f4d7771b610 (patch)
tree9976f13324cf0bd237211a28a8128ba6ed808df8 /win/tkWinMenu.c
parent73cd4c1a39143ee2ad2c2bb4dcb84ef52d196797 (diff)
parent857ad319e1e8ef85c537ede8d628c08de911f03f (diff)
downloadtk-da70d24c1529ed14e9b303d054436f4d7771b610.zip
tk-da70d24c1529ed14e9b303d054436f4d7771b610.tar.gz
tk-da70d24c1529ed14e9b303d054436f4d7771b610.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 b7b5598..4593928 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -3194,7 +3194,7 @@ SetDefaults(
int padding;
#endif
} nc;
- OSVERSIONINFO os;
+ OSVERSIONINFOW os;
/*
* Set all of the default options. The loop will terminate when we run out
@@ -3214,8 +3214,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);
}