summaryrefslogtreecommitdiffstats
path: root/win/tclWinLoad.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-09-06 22:37:23 (GMT)
committerhobbs <hobbs>2000-09-06 22:37:23 (GMT)
commit68a252b7d9b1335f2236481163d17395a08c3327 (patch)
tree0ddeacef67c0c1e979acabbcacc64cc9f8f0bba2 /win/tclWinLoad.c
parent106238381fb5a416aca2817b156ec8f20ec6ba7d (diff)
downloadtcl-68a252b7d9b1335f2236481163d17395a08c3327.zip
tcl-68a252b7d9b1335f2236481163d17395a08c3327.tar.gz
tcl-68a252b7d9b1335f2236481163d17395a08c3327.tar.bz2
* win/tclWinLoad.c (TclpLoadFile): added special message for
ERROR_PROC_NOT_FOUND exception in loading a dll. * win/tclWinError.c: changed ERROR_PROC_NOT_FOUND to map from ESRCH (POSIX: no such process) to EINVAL because there is no good mapping for "procedure not found".
Diffstat (limited to 'win/tclWinLoad.c')
-rw-r--r--win/tclWinLoad.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/win/tclWinLoad.c b/win/tclWinLoad.c
index 360b629..8afbefe 100644
--- a/win/tclWinLoad.c
+++ b/win/tclWinLoad.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinLoad.c,v 1.5 2000/02/10 09:53:57 hobbs Exp $
+ * RCS: @(#) $Id: tclWinLoad.c,v 1.6 2000/09/06 22:37:24 hobbs Exp $
*/
#include "tclWinInt.h"
@@ -87,8 +87,12 @@ TclpLoadFile(interp, fileName, sym1, sym2, proc1Ptr, proc2Ptr, clientDataPtr)
case ERROR_MOD_NOT_FOUND:
case ERROR_DLL_NOT_FOUND:
Tcl_AppendResult(interp, "this library or a dependent library",
- " could not be found in library path", (char *)
- NULL);
+ " could not be found in library path",
+ (char *) NULL);
+ break;
+ case ERROR_PROC_NOT_FOUND:
+ Tcl_AppendResult(interp, "could not find specified procedure",
+ (char *) NULL);
break;
case ERROR_INVALID_DLL:
Tcl_AppendResult(interp, "this library or a dependent library",