diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/windows/windows_process.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/windows/windows_process.cxx b/comphelper/source/windows/windows_process.cxx index 1a404785536a..c9a41f5fc5d6 100644 --- a/comphelper/source/windows/windows_process.cxx +++ b/comphelper/source/windows/windows_process.cxx @@ -143,7 +143,7 @@ MakeCommandLine(int argc, wchar_t **argv) if (len == 0) len = 1; - wchar_t *s = (wchar_t*) malloc(len * sizeof(wchar_t)); + wchar_t *s = static_cast<wchar_t*>(malloc(len * sizeof(wchar_t))); if (!s) return nullptr; @@ -259,7 +259,7 @@ WinLaunchChild(const wchar_t *exePath, nullptr, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPTSTR) &lpMsgBuf, + reinterpret_cast<LPTSTR>(&lpMsgBuf), 0, nullptr); wprintf(L"Error restarting: %s\n", lpMsgBuf ? lpMsgBuf : L"(null)"); |