summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 08:52:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-04 08:52:33 (GMT)
commitde445d487d5a80ad9c8a49d28f8db7d6a24b463e (patch)
tree782d114e8acacf526b660528a7be468dd31ce666 /win/tkWinDialog.c
parent0688248a16db42960dd4cd62e44565a1d940fe92 (diff)
parent6c6084d66c4ec111a3e3c9f4af5518d929313fef (diff)
downloadtk-de445d487d5a80ad9c8a49d28f8db7d6a24b463e.zip
tk-de445d487d5a80ad9c8a49d28f8db7d6a24b463e.tar.gz
tk-de445d487d5a80ad9c8a49d28f8db7d6a24b463e.tar.bz2
Fix [http://core.tcl.tk/tcl/info/651e828a52|651e828a52]: Wrong Windows version reported for Windows 8.1.
Remove some dead code (since Win95/98/ME is no longer supported)
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 277cd9f..baebfc9 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -46,10 +46,6 @@
#endif
#endif /* BFFM_VALIDATEFAILED */
-#ifndef OPENFILENAME_SIZE_VERSION_400
-#define OPENFILENAME_SIZE_VERSION_400 76
-#endif
-
typedef struct ThreadSpecificData {
int debugFlag; /* Flags whether we should output debugging
* information while displaying a builtin
@@ -680,11 +676,7 @@ GetFileName(
hWnd = Tk_GetHWND(Tk_WindowId(tkwin));
ZeroMemory(&ofn, sizeof(OPENFILENAME));
- if (LOBYTE(LOWORD(GetVersion())) < 5) {
- ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400;
- } else {
- ofn.lStructSize = sizeof(OPENFILENAME);
- }
+ ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hWnd;
ofn.hInstance = TkWinGetHInstance(ofn.hwndOwner);
ofn.lpstrFile = file;