diff --git a/reactos/sdk/lib/atl/cstringt.h b/reactos/sdk/lib/atl/cstringt.h index 21b9e936b53..71d7146e545 100644 --- a/reactos/sdk/lib/atl/cstringt.h +++ b/reactos/sdk/lib/atl/cstringt.h @@ -575,15 +575,15 @@ public: } - //void __cdecl Format(UINT nFormatID, ...) - //{ - // va_list args; - // va_start(args, dwMessageId); - // CStringT formatString; - // formatString.LoadString(?????); - // FormatV(formatString, args); - // va_end(args); - //} + void __cdecl Format(UINT nFormatID, ...) + { + va_list args; + va_start(args, nFormatID); + CStringT formatString; + if (formatString.LoadString(nFormatID)) + FormatV(formatString, args); + va_end(args); + } void __cdecl Format(PCXSTR pszFormat, ...) {