[krbdev.mit.edu #6410] MessageBox calls in leashw32.dll cause problems for non-interactive applications

Jeffrey Altman via RT rt at krbdev.mit.edu
Thu Mar 12 07:57:02 EDT 2009


The leashw32.dll is filled with calls to MessageBox().  The assumption
was that if an error occurred within the krb5 library that it should be
displayed to the end user.   The problem is that KFW is no used only for
interactive applications and even when it is the generation of
MessageBoxes from the library as opposed to reporting the errors to the
application and letting the application interact with the user is
(perhaps) a poor choice.

Attached is a patch that disables all of the MessageBox calls within
leashw32.  It permits USE_MESSAGE_BOX to be specified at compile time in
order to re-enable the MessageBox calls.  





More information about the kfwdev mailing list