diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/socket.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/socket.cxx b/sal/osl/w32/socket.cxx index b1d8af3a9970..97c8ffee2987 100644 --- a/sal/osl/w32/socket.cxx +++ b/sal/osl/w32/socket.cxx @@ -793,9 +793,9 @@ oslSocket SAL_CALL osl_createSocket( int nErrno = WSAGetLastError(); wchar_t *sErr = nullptr; FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, nErrno, + nullptr, nErrno, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPWSTR)&sErr, 0, NULL); + reinterpret_cast<LPWSTR>(&sErr), 0, nullptr); SAL_WARN("sal.osl", "socket creation failed: (" << nErrno << ") " << sErr); LocalFree(sErr); |