mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 22:10:17 +01:00
Win32: Pass FORMAT_MESSAGE_IGNORE_INSERTS
This should always be passed when retreving messages from third parties (unless the third party documents format strings) See https://devblogs.microsoft.com/oldnewthing/20071128-00/?p=24353
This commit is contained in:
parent
d0ee67a142
commit
e10adb1c2b
3 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ _cairo_win32_print_gdi_error (const char *context)
|
|||
DWORD last_error = GetLastError ();
|
||||
|
||||
if (!FormatMessageW (FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS |
|
||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL,
|
||||
last_error,
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ _cairo_dwrite_error (HRESULT hr, const char *context)
|
|||
void *lpMsgBuf;
|
||||
|
||||
if (!FormatMessageW (FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS |
|
||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL,
|
||||
hr,
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ _cairo_win32_print_gdi_error (const char *context)
|
|||
DWORD last_error = GetLastError ();
|
||||
|
||||
if (!FormatMessageW (FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||
FORMAT_MESSAGE_IGNORE_INSERTS |
|
||||
FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL,
|
||||
last_error,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue