summaryrefslogtreecommitdiffstats
path: root/qt-ui/btdeviceselectiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/btdeviceselectiondialog.cpp')
-rw-r--r--qt-ui/btdeviceselectiondialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/btdeviceselectiondialog.cpp b/qt-ui/btdeviceselectiondialog.cpp
index 40d57314f..2fa8ef167 100644
--- a/qt-ui/btdeviceselectiondialog.cpp
+++ b/qt-ui/btdeviceselectiondialog.cpp
@@ -588,8 +588,8 @@ void WinBluetoothDeviceDiscoveryAgent::run()
if (result == SUCCESS) {
// Found a device
- QString deviceAddress(BTH_ADDR_STR_LEN, Qt::Uninitialized);
- DWORD addressSize = BTH_ADDR_STR_LEN;
+ QString deviceAddress(BTH_ADDR_BUF_LEN, Qt::Uninitialized);
+ DWORD addressSize = BTH_ADDR_BUF_LEN;
// Collect the address of the device from the WSAQUERYSET
SOCKADDR_BTH *socketBthAddress = (SOCKADDR_BTH *) pResults->lpcsaBuffer->RemoteAddr.lpSockaddr;