Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a6393819
Kaydet (Commit)
a6393819
authored
Mar 05, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd: BluetoothServer: fix deprecation warning C4996, use WSAQUERYSETW
Change-Id: I07e6757f447ad1c4514f2ddcdf26589190445870
üst
a829dac0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
BluetoothServer.cxx
sd/source/ui/remotecontrol/BluetoothServer.cxx
+4
-4
No files found.
sd/source/ui/remotecontrol/BluetoothServer.cxx
Dosyayı görüntüle @
a6393819
...
@@ -1366,17 +1366,17 @@ void SAL_CALL BluetoothServer::run()
...
@@ -1366,17 +1366,17 @@ void SAL_CALL BluetoothServer::run()
// ULONGLONG aData4 = 0x800000805F9B34FB;
// ULONGLONG aData4 = 0x800000805F9B34FB;
// memcpy( uuid.Data4, &aData4, sizeof(uuid.Data4) );
// memcpy( uuid.Data4, &aData4, sizeof(uuid.Data4) );
WSAQUERYSET
aRecord
;
WSAQUERYSET
W
aRecord
;
memset
(
&
aRecord
,
0
,
sizeof
(
aRecord
));
memset
(
&
aRecord
,
0
,
sizeof
(
aRecord
));
aRecord
.
dwSize
=
sizeof
(
aRecord
);
aRecord
.
dwSize
=
sizeof
(
aRecord
);
aRecord
.
lpszServiceInstanceName
=
(
char
*
)
"LibreOffice Impress Remote Control"
;
aRecord
.
lpszServiceInstanceName
=
L
"LibreOffice Impress Remote Control"
;
aRecord
.
lpszComment
=
(
char
*
)
"Remote control of presentations over bluetooth."
;
aRecord
.
lpszComment
=
L
"Remote control of presentations over bluetooth."
;
aRecord
.
lpServiceClassId
=
(
LPGUID
)
&
SerialPortServiceClass_UUID
;
aRecord
.
lpServiceClassId
=
(
LPGUID
)
&
SerialPortServiceClass_UUID
;
aRecord
.
dwNameSpace
=
NS_BTH
;
aRecord
.
dwNameSpace
=
NS_BTH
;
aRecord
.
dwNumberOfCsAddrs
=
1
;
aRecord
.
dwNumberOfCsAddrs
=
1
;
aRecord
.
lpcsaBuffer
=
&
aAddrInfo
;
aRecord
.
lpcsaBuffer
=
&
aAddrInfo
;
if
(
WSASetService
(
&
aRecord
,
RNRSERVICE_REGISTER
,
0
)
==
SOCKET_ERROR
)
if
(
WSASetServiceW
(
&
aRecord
,
RNRSERVICE_REGISTER
,
0
)
==
SOCKET_ERROR
)
{
{
closesocket
(
aSocket
);
closesocket
(
aSocket
);
WSACleanup
();
WSACleanup
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment