[ATL] cstringt.h: Uncomment and complete Format(UINT nFormatID, ...). It still uses...
authorBenedikt Freisen <b.freisen@gmx.net>
Mon, 26 Sep 2016 14:11:50 +0000 (14:11 +0000)
committerBenedikt Freisen <b.freisen@gmx.net>
Mon, 26 Sep 2016 14:11:50 +0000 (14:11 +0000)
svn path=/trunk/; revision=72813

reactos/sdk/lib/atl/cstringt.h

index 21b9e93..71d7146 100644 (file)
@@ -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, ...)
     {