Commit c11d4d9a authored by Carlos Lozano's avatar Carlos Lozano Committed by Alexandre Julliard

Avoid printing an uninitialized buffer.

parent d1d5ca53
...@@ -466,6 +466,7 @@ static const char * _CDS_flags(DWORD fields) ...@@ -466,6 +466,7 @@ static const char * _CDS_flags(DWORD fields)
_X_FIELD(CDS,UPDATEREGISTRY);_X_FIELD(CDS,TEST);_X_FIELD(CDS,FULLSCREEN); _X_FIELD(CDS,UPDATEREGISTRY);_X_FIELD(CDS,TEST);_X_FIELD(CDS,FULLSCREEN);
_X_FIELD(CDS,GLOBAL);_X_FIELD(CDS,SET_PRIMARY);_X_FIELD(CDS,RESET); _X_FIELD(CDS,GLOBAL);_X_FIELD(CDS,SET_PRIMARY);_X_FIELD(CDS,RESET);
_X_FIELD(CDS,SETRECT);_X_FIELD(CDS,NORESET); _X_FIELD(CDS,SETRECT);_X_FIELD(CDS,NORESET);
*p = 0;
return wine_dbg_sprintf("%s", buf); return wine_dbg_sprintf("%s", buf);
} }
static const char * _DM_fields(DWORD fields) static const char * _DM_fields(DWORD fields)
...@@ -475,6 +476,7 @@ static const char * _DM_fields(DWORD fields) ...@@ -475,6 +476,7 @@ static const char * _DM_fields(DWORD fields)
char *p = buf; char *p = buf;
_X_FIELD(DM,BITSPERPEL);_X_FIELD(DM,PELSWIDTH);_X_FIELD(DM,PELSHEIGHT); _X_FIELD(DM,BITSPERPEL);_X_FIELD(DM,PELSWIDTH);_X_FIELD(DM,PELSHEIGHT);
_X_FIELD(DM,DISPLAYFLAGS);_X_FIELD(DM,DISPLAYFREQUENCY);_X_FIELD(DM,POSITION); _X_FIELD(DM,DISPLAYFLAGS);_X_FIELD(DM,DISPLAYFREQUENCY);_X_FIELD(DM,POSITION);
*p = 0;
return wine_dbg_sprintf("%s", buf); return wine_dbg_sprintf("%s", buf);
} }
#undef _X_FIELD #undef _X_FIELD
......
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