Add a missing include
authorKJK::Hyperion <hackbunny@reactos.org>
Thu, 27 Aug 2009 19:34:19 +0000 (19:34 +0000)
committerKJK::Hyperion <hackbunny@reactos.org>
Thu, 27 Aug 2009 19:34:19 +0000 (19:34 +0000)
"msc_helper" -> "rbuild_helper" in error messages

svn path=/trunk/; revision=42957

reactos/tools/rbuild_helper/rbuild_helper.cpp

index 33d5999..acf71f5 100644 (file)
@@ -27,6 +27,7 @@ int main() { return 1; }
 
 #else
 
+#include <algorithm>
 #include <functional>
 #include <iterator>
 #include <limits>
@@ -95,7 +96,7 @@ namespace
                DWORD cchMessage = FormatMessageA
                (
                        FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_ARGUMENT_ARRAY | FORMAT_MESSAGE_FROM_STRING,
-                       "msc_helper: %1!s!() failed: error %2!lu!\n",
+                       "rbuild_helper: %1!s!() failed: error %2!lu!\n",
                        0,
                        0,
                        (LPSTR)&pszMessage,
@@ -135,7 +136,7 @@ namespace
        DECLSPEC_NORETURN
        void OutOfMemory()
        {
-               DieMessage("msc_helper: out of memory\n");
+               DieMessage("rbuild_helper: out of memory\n");
        }
 
        template<class CharT>
@@ -156,7 +157,7 @@ namespace
                void push_back(TCHAR x)
                {
                        if(x > std::numeric_limits<CharT>::max() || x < std::numeric_limits<CharT>::min())
-                               DieMessage("msc_helper: invalid character in command line\n");
+                               DieMessage("rbuild_helper: invalid character in command line\n");
 
                        m_arg = static_cast<CharT *>(HeapReAlloc(GetProcessHeap(), 0, m_arg, (m_argLen + 1) * sizeof(CharT)));
 
@@ -304,7 +305,7 @@ namespace
                                DWORD cchPipeName = FormatMessage
                                (
                                        FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_ARGUMENT_ARRAY | FORMAT_MESSAGE_FROM_STRING,
-                                       TEXT("\\\\.\\pipe\\msc_helper-%1!08X!-%2!08X!"),
+                                       TEXT("\\\\.\\pipe\\rbuild_helper-%1!08X!-%2!08X!"),
                                        0,
                                        0,
                                        (LPTSTR)&m_pszPipeName,