mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:33:23 +00:00
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:
parent
89540e0fb2
commit
a319c42310
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue