summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_globaldata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_globaldata.cpp b/fxjs/cjs_globaldata.cpp
index fe7d94b9a4..3f962734db 100644
--- a/fxjs/cjs_globaldata.cpp
+++ b/fxjs/cjs_globaldata.cpp
@@ -337,8 +337,8 @@ void CJS_GlobalData::SaveGlobalPersisitentVariables() {
CRYPT_ArcFourCryptBlock(sFile.GetBuffer(), sFile.GetSize(), JS_RC4KEY,
sizeof(JS_RC4KEY));
- WriteFileBuffer(m_sFilePath.c_str(), (const char*)sFile.GetBuffer(),
- sFile.GetSize());
+ WriteFileBuffer(m_sFilePath.c_str(),
+ reinterpret_cast<char*>(sFile.GetBuffer()), sFile.GetSize());
}
void CJS_GlobalData::LoadFileBuffer(const wchar_t* sFilePath,