Skip to content

Commit f47115f

Browse files
authored
[GEN][ZH] Fix missing call to va_end in InGameUI::messageColor() (#872)
1 parent d44d901 commit f47115f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,7 @@ void InGameUI::messageColor( const RGBColor *rgbColor, UnicodeString format, ...
20252025
va_start( args, format );
20262026
WideChar buf[ UnicodeString::MAX_FORMAT_BUF_LEN ];
20272027
int result = _vsnwprintf(buf, sizeof( buf )/sizeof( WideChar ) - 1, format.str(), args );
2028+
va_end(args);
20282029

20292030
if( result >= 0 )
20302031
{

GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,7 @@ void InGameUI::messageColor( const RGBColor *rgbColor, UnicodeString format, ...
20812081
va_start( args, format );
20822082
WideChar buf[ UnicodeString::MAX_FORMAT_BUF_LEN ];
20832083
int result = _vsnwprintf(buf, sizeof( buf )/sizeof( WideChar ) - 1, format.str(), args );
2084+
va_end(args);
20842085

20852086
if( result >= 0 )
20862087
{

0 commit comments

Comments
 (0)