summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-30 07:46:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-30 07:46:19 (GMT)
commite64497a5bc67ff3b3f39e57700c650c6e7962eea (patch)
tree7e57204b12abc171ad343d007edecaf1b17cdf09 /win/tkWinDialog.c
parent488df4eea56d73f306245cf3cebedcc0e25038b6 (diff)
downloadtk-e64497a5bc67ff3b3f39e57700c650c6e7962eea.zip
tk-e64497a5bc67ff3b3f39e57700c650c6e7962eea.tar.gz
tk-e64497a5bc67ff3b3f39e57700c650c6e7962eea.tar.bz2
Working towards making the error codes more consistent.
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 7f96ec2..c64df72 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -896,7 +896,8 @@ GetFileName(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"invalid filename \"%s\"",
ConvertExternalFilename(ofn.lpstrFile, &ds)));
- Tcl_SetErrorCode(interp, "TK", "FILEDIALOG", "INVALIDFILENAME", NULL);
+ Tcl_SetErrorCode(interp, "TK", "FILEDIALOG", "INVALID_FILENAME",
+ NULL);
Tcl_DStringFree(&ds);
} else {
result = TCL_OK;