summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/cc_mslsa.c
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2004-06-22 06:39:43 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2004-06-22 06:39:43 +0000
commit2ea1cb233941b3f9ce94094869b5846c389210ce (patch)
tree43a34c622cb1b6536b8c508b255607c980ef2c9c /src/lib/krb5/ccache/cc_mslsa.c
parente1e8f5ec6464eb07d0506697c5a13d80878dd671 (diff)
downloadkrb5-2ea1cb233941b3f9ce94094869b5846c389210ce.tar.gz
krb5-2ea1cb233941b3f9ce94094869b5846c389210ce.tar.xz
krb5-2ea1cb233941b3f9ce94094869b5846c389210ce.zip
cc_mslsa.c: Comment out calls to FormatMessage and do not terminate
the program on a failure to generate a message. The existing code fails on non-English systems. We do not need this code in a library unless we are logging to the Event Log which is currently not done. Ignore this for the time being until such time as we decide Event Log entries are important to us. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16503 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/ccache/cc_mslsa.c')
-rw-r--r--src/lib/krb5/ccache/cc_mslsa.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c
index 07e560644..f57b397e6 100644
--- a/src/lib/krb5/ccache/cc_mslsa.c
+++ b/src/lib/krb5/ccache/cc_mslsa.c
@@ -98,6 +98,13 @@ ShowWinError(LPSTR szAPI, DWORD dwError)
// TODO - Write errors to event log so that scripts that don't
// check for errors will still get something in the event log
+ // This code is completely unsafe for use on non-English systems
+ // Any call to this function will result in the FormatMessage
+ // call failing and the program terminating. This might have
+ // been acceptable when this code was part of ms2mit.exe as
+ // a standalone executable but it is not appropriate for a library
+
+#ifdef COMMENT
WCHAR szMsgBuf[MAX_MSG_SIZE];
DWORD dwRes;
@@ -117,6 +124,7 @@ ShowWinError(LPSTR szAPI, DWORD dwError)
}
printf("%S",szMsgBuf);
+#endif /* COMMENT */
}
static VOID