Rename BTH_ADDR_STR_LEN macro

Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Claudiu Olteanu 2015-09-19 19:31:21 +03:00 committed by Dirk Hohndel
parent 89540e0fb2
commit a319c42310
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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