summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2015-02-09 11:31:41 +0000
committerJosé Fonseca <jfonseca@vmware.com>2015-02-09 11:37:00 +0000
commit45b259c37aa0f2dba556642704972eea649661e8 (patch)
tree1749a18a2df0b3a760abc098016027b7dfabdbd9
parentda777082e02eec11c4b7e27679bdb15f47a44f66 (diff)
d3dretrace: Pass FORMAT_MESSAGE_IGNORE_INSERTS to FormatMessage.
http://blogs.msdn.com/b/oldnewthing/archive/2007/11/28/6564257.aspx
-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,