Commit df75c9ed authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

include: Fix debugstr_fourcc printf format to print at most 4 chars.

parent ae976eec
......@@ -330,7 +330,7 @@ static inline const char *wine_dbgstr_fourcc( unsigned int fourcc )
if (!fourcc)
return "''";
if (isprint( str[0] ) && isprint( str[1] ) && isprint( str[2] ) && isprint( str[3] ))
return wine_dbg_sprintf( "'%4s'", str );
return wine_dbg_sprintf( "'%.4s'", str );
return wine_dbg_sprintf( "0x%08x", fourcc );
}
......
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