We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
reinterpret_cast
1 parent 49e53df commit 126bbe7Copy full SHA for 126bbe7
1 file changed
cpp/src/arrow/flight/sql/odbc/odbc_impl/system_dsn.cc
@@ -48,7 +48,7 @@ void PostArrowUtilError(arrow::Status error_status) {
48
std::wstring werror_msg = arrow::util::UTF8ToWideString(error_msg).ValueOr(
49
L"Error during utf8 to wide string conversion");
50
51
- PostError(ODBC_ERROR_GENERAL_ERR, const_cast<LPWSTR>(werror_msg.c_str()));
+ PostError(ODBC_ERROR_GENERAL_ERR, const_cast<LPWSTR>(GET_SQWCHAR_PTR(werror_msg)));
52
}
53
54
void PostLastInstallerError() {
@@ -70,7 +70,7 @@ void PostLastInstallerError() {
70
#endif // __linux__
71
std::wstring error_msg = buf.str();
72
73
- PostError(code, const_cast<LPWSTR>(error_msg.c_str()));
+ PostError(code, const_cast<LPWSTR>(GET_SQWCHAR_PTR(error_msg)));
74
75
76
/**
0 commit comments