1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

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

This commit is contained in:
Rémi Bernon 2023-10-16 10:31:04 +02:00 committed by Alexandre Julliard
parent ae976eec5e
commit df75c9ed3c

View File

@ -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 );
}