diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp
index 43a61c3857d86d788dd6fdd17163fda77fea6d65..d2854c6b47e047a425b7f0fdaba25db74736ad59 100644
--- a/indra/newview/llappviewerwin32.cpp
+++ b/indra/newview/llappviewerwin32.cpp
@@ -130,7 +130,7 @@ namespace
         // Now dump the memory pointed to by wstr as raw bytes.
         char oldfill = out.fill();
         out << std::hex << std::setfill('0') << std::setw(2);
-        unsigned char* bytes = reinterpret_cast<unsigned char*>(wstr);
+        const unsigned char* bytes = reinterpret_cast<const unsigned char*>(wstr);
         // Increment by one __wchar_t so we display the final nul character;
         // remember to multiply by the number of bytes in a __wchar_t.
         for (size_t b = 0; b < ((size + 1) * sizeof(__wchar_t)); ++b)