diff options
-rw-r--r-- | qt-ui/btdeviceselectiondialog.cpp | 4 | ||||
-rw-r--r-- | qt-ui/btdeviceselectiondialog.h | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/qt-ui/btdeviceselectiondialog.h b/qt-ui/btdeviceselectiondialog.h index d947d3449..a99afb80a 100644 --- a/qt-ui/btdeviceselectiondialog.h +++ b/qt-ui/btdeviceselectiondialog.h @@ -14,7 +14,7 @@ #include <ws2bth.h> #define SUCCESS 0 - #define BTH_ADDR_STR_LEN 40 + #define BTH_ADDR_BUF_LEN 40 #define BTH_ADDR_PRETTY_STRING_LEN 17 // there are 6 two-digit hex values and 5 colons #undef ERROR // this is already declared in our headers |