Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Utils.cpp')
-rw-r--r--Utils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Utils.cpp b/Utils.cpp
index b54492b..26737ce 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -22,7 +22,7 @@
#include "Utils.h"
#include "RFS.h"
-void ErrorMsg (DWORD errorCode, wchar_t *format, ...)
+void ErrorMsg (DWORD errorCode, const wchar_t *format, ...)
{
wchar_t buffer [1024];
wchar_t *end;
@@ -53,7 +53,7 @@ void ErrorMsg (DWORD errorCode, wchar_t *format, ...)
#ifdef _DEBUG
-static wchar_t *mhd_flags [] =
+static const wchar_t *const mhd_flags [] =
{
L"MHD_VOLUME",
L"MHD_COMMENT",
@@ -67,7 +67,7 @@ static wchar_t *mhd_flags [] =
L"MHD_ENCRYPTVER"
};
-static wchar_t *lhd_flags1 [] =
+static const wchar_t *const lhd_flags1 [] =
{
L"LHD_SPLIT_BEFORE",
L"LHD_SPLIT_AFTER",
@@ -76,7 +76,7 @@ static wchar_t *lhd_flags1 [] =
L"LHD_SOLID"
};
-static wchar_t *lhd_flags2 [] =
+static const wchar_t *const lhd_flags2 [] =
{
L"LHD_LARGE",
L"LHD_UNICODE",
@@ -86,7 +86,7 @@ static wchar_t *lhd_flags2 [] =
L"LHD_EXTFLAGS"
};
-static wchar_t *earc_flags [] =
+static const wchar_t *const earc_flags [] =
{
L"EARC_NEXT_VOLUME",
L"EARC_DATACRC",