Commit 031aef85 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

user32: Debugstr_format() should not modify the last error.

parent bbe2eaec
......@@ -81,8 +81,11 @@ struct metafile_pict
static const char *debugstr_format( UINT id )
{
WCHAR buffer[256];
DWORD le = GetLastError();
BOOL r = GetClipboardFormatNameW( id, buffer, 256 );
SetLastError(le);
if (GetClipboardFormatNameW( id, buffer, 256 ))
if (r)
return wine_dbg_sprintf( "%04x %s", id, debugstr_w(buffer) );
switch (id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment