summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-24 05:45:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-24 05:45:55 +0000
commit3a42901a8092933ed8d700812e919a994319ec44 (patch)
tree258acc63f73694fe2f90385ce6858f1d6e8dd5f4 /dln.c
parent4ffb36163018fdc2b6045b63ab9d0ed460a9588d (diff)
* dln.c (dln_strerror): fix a bug that sometimes made null message on
win32 (Tietew <tietew@tietew.net>'s patch). * win32/win32.c (mystrerror): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index 2dd7b87..cbb267f 100644
--- a/dln.c
+++ b/dln.c
@@ -1153,7 +1153,7 @@ dln_strerror()
char *p = message;
p += sprintf(message, "%d: ", error);
FormatMessage(
- FORMAT_MESSAGE_FROM_SYSTEM,
+ FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),