summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--retrace/retrace.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/retrace/retrace.cpp b/retrace/retrace.cpp
index f3995176..09940279 100644
--- a/retrace/retrace.cpp
+++ b/retrace/retrace.cpp
@@ -69,7 +69,9 @@ failed(trace::Call &call, HRESULT hr)
LPSTR lpszMessageBuffer = NULL;
DWORD dwWritten;
- dwWritten = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER,
+ dwWritten = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
+ FORMAT_MESSAGE_FROM_SYSTEM |
+ FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
hr,
0,