summaryrefslogtreecommitdiffstats
path: root/win/tkWinSend.c
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2009-05-13 22:03:38 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2009-05-13 22:03:38 (GMT)
commita01e803d6f4e6e29351dff8b8d53c5eae3cf0b41 (patch)
treee90aeb308a60ce722db765a87ffb7007f6baaad2 /win/tkWinSend.c
parent4c9ba00e0e6b2b98614ad89cb8cb00a5033a88af (diff)
downloadtk-a01e803d6f4e6e29351dff8b8d53c5eae3cf0b41.zip
tk-a01e803d6f4e6e29351dff8b8d53c5eae3cf0b41.tar.gz
tk-a01e803d6f4e6e29351dff8b8d53c5eae3cf0b41.tar.bz2
FormatMessage should always use the ignore-inserts flag when processing system errors.
Diffstat (limited to 'win/tkWinSend.c')
-rw-r--r--win/tkWinSend.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tkWinSend.c b/win/tkWinSend.c
index f7cba1f..913de71 100644
--- a/win/tkWinSend.c
+++ b/win/tkWinSend.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: tkWinSend.c,v 1.19 2009/01/28 20:47:49 nijtmans Exp $
+ * RCS: @(#) $Id: tkWinSend.c,v 1.20 2009/05/13 22:03:38 patthoyts Exp $
*/
#include "tkInt.h"
@@ -839,9 +839,9 @@ Win32ErrorObj(
TCHAR sBuffer[30];
Tcl_Obj* errPtr = NULL;
- FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
- NULL, (DWORD)hrError, LANG_NEUTRAL,
- (LPTSTR)&lpBuffer, 0, NULL);
+ FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM
+ | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, (DWORD)hrError,
+ LANG_NEUTRAL, (LPTSTR)&lpBuffer, 0, NULL);
if (lpBuffer == NULL) {
lpBuffer = sBuffer;