summaryrefslogtreecommitdiffstats
path: root/win/tclAppInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-26 19:38:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-26 19:38:08 (GMT)
commit59f808eb7a065aaf628c751e8eb2c7e20505989b (patch)
tree4f710e190e73bc94273eec4e98e147003d0704c1 /win/tclAppInit.c
parentf0f3d8a55b9ad46a51d1ffc55732a6bea3f17784 (diff)
downloadtcl-59f808eb7a065aaf628c751e8eb2c7e20505989b.zip
tcl-59f808eb7a065aaf628c751e8eb2c7e20505989b.tar.gz
tcl-59f808eb7a065aaf628c751e8eb2c7e20505989b.tar.bz2
Improvements for zipfs. Document that TclZipfs_AppHook only works on Windows in UNICODE mode. Also, remove this from the stub table because it should never be called this way.
Prevent a possible crash on win32 startup.
Diffstat (limited to 'win/tclAppInit.c')
-rw-r--r--win/tclAppInit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tclAppInit.c b/win/tclAppInit.c
index 6d2bda4..6444b21 100644
--- a/win/tclAppInit.c
+++ b/win/tclAppInit.c
@@ -126,7 +126,8 @@ _tmain(
#ifdef TCL_LOCAL_MAIN_HOOK
TCL_LOCAL_MAIN_HOOK(&argc, &argv);
-#else
+#elif !defined(_WIN32) && !defined(UNICODE)
+ /* This doesn't work on Windows without UNICODE */
TclZipfs_AppHook(&argc, &argv);
#endif