diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-06-09 03:41:23 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-06-09 03:41:23 +0000 |
commit | e40c7ab1dcf863d230af94cf0bbb30335fe0d5eb (patch) | |
tree | d0664afb826f432d6bf85b0e99d5ed4ac9cfd1dd /epan/filesystem.c | |
parent | c3dadc73f3d2f9682fb8f3b2850e661bfb0b98d7 (diff) | |
download | wireshark-e40c7ab1dcf863d230af94cf0bbb30335fe0d5eb.tar.gz |
Be sure to specify FORMAT_MESSAGE_IGNORE_INSERTS in the dwFlags arg to all FormatMessage() calls where FORMAT_MESSAGE_FROM_SYSTEM is also specified. (Ref: http://blogs.msdn.com/b/oldnewthing/archive/2007/11/28/6564257.aspx)
svn path=/trunk/; revision=43172
Diffstat (limited to 'epan/filesystem.c')
-rw-r--r-- | epan/filesystem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/filesystem.c b/epan/filesystem.c index 2e744455ca..ea41a10eda 100644 --- a/epan/filesystem.c +++ b/epan/filesystem.c @@ -305,7 +305,7 @@ init_progfile_dir(const char *arg0 * Oh, well. Return an indication of the error. */ error = GetLastError(); - if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM, + if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS, NULL, error, 0, (LPTSTR) &msg_w, 0, NULL) == 0) { /* * Gak. We can't format the message. |