summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2023-01-26 13:16:43 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2023-02-09 18:55:37 +0100
commit0f50145e433d2ac4ad2f4371ce627d2e0c2e0efd (patch)
treed6b5718bdb5dda54cb02b426f9585109fb071115 /src/plugins/sqldrivers/mysql/qsql_mysql.cpp
parent08ea2c5dc8203c89c61a38047d2e8c68fb403e06 (diff)
QSysInfo: Work around erroneous warning output from Windows
gethostname is in no way labeled deprecated, but it _tries_ to query some deprecated functionality, thus some warning like this is printed: "" LogHr(1) tid(6e14) 8007277C No such service is known. The service cannot be found in the specified name space. "" By using GetComputerNameEx we work around that. Bonus side effect is that it gives us UTF-16 right away so we save a conversion. Fixes: QTBUG-110468 Pick-to: 6.5 Change-Id: I3a370354d9cce50e3d89d125ce61fc9b619294cc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions