diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-03-05 12:40:44 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-05 15:36:47 +0100 |
commit | a63938194e936332d7c4cf8ee9d73af8c5a15c17 (patch) | |
tree | 5a93e32a03c9b2d9650524dbd24588e427e932bf /sd | |
parent | a829dac0c97df269616107e30d06980ca919dc15 (diff) |
sd: BluetoothServer: fix deprecation warning C4996, use WSAQUERYSETW
Change-Id: I07e6757f447ad1c4514f2ddcdf26589190445870
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/BluetoothServer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index 72ca12843385..648b60bb30b6 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -1366,17 +1366,17 @@ void SAL_CALL BluetoothServer::run() // ULONGLONG aData4 = 0x800000805F9B34FB; // memcpy( uuid.Data4, &aData4, sizeof(uuid.Data4) ); - WSAQUERYSET aRecord; + WSAQUERYSETW aRecord; memset( &aRecord, 0, sizeof(aRecord)); aRecord.dwSize = sizeof(aRecord); - aRecord.lpszServiceInstanceName = (char *)"LibreOffice Impress Remote Control"; - aRecord.lpszComment = (char *)"Remote control of presentations over bluetooth."; + aRecord.lpszServiceInstanceName = L"LibreOffice Impress Remote Control"; + aRecord.lpszComment = L"Remote control of presentations over bluetooth."; aRecord.lpServiceClassId = (LPGUID) &SerialPortServiceClass_UUID; aRecord.dwNameSpace = NS_BTH; aRecord.dwNumberOfCsAddrs = 1; aRecord.lpcsaBuffer = &aAddrInfo; - if ( WSASetService( &aRecord, RNRSERVICE_REGISTER, 0 ) == SOCKET_ERROR ) + if (WSASetServiceW( &aRecord, RNRSERVICE_REGISTER, 0 ) == SOCKET_ERROR) { closesocket( aSocket ); WSACleanup(); |