From bc6c726970355a7f606fe9de842ccb56140e9e0c Mon Sep 17 00:00:00 2001 From: aaronyujiaze Date: Fri, 3 Jun 2022 11:36:37 -0700 Subject: [PATCH] Fix bugs in Windows' BluetoothAdapter PiperOrigin-RevId: 452808916 --- internal/platform/implementation/windows/bluetooth_adapter.cc | 2 +- internal/platform/implementation/windows/bluetooth_adapter.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/platform/implementation/windows/bluetooth_adapter.cc b/internal/platform/implementation/windows/bluetooth_adapter.cc index 9c39bc03..cffe1662 100644 --- a/internal/platform/implementation/windows/bluetooth_adapter.cc +++ b/internal/platform/implementation/windows/bluetooth_adapter.cc @@ -429,7 +429,7 @@ bool BluetoothAdapter::SetName(absl::string_view name) { RegCloseKey(hKey); // tells the control function to reset or reload or similar... - int32 reload = 4; + int32_t reload = 4; // merely a placeholder DWORD bytes = 0; diff --git a/internal/platform/implementation/windows/bluetooth_adapter.h b/internal/platform/implementation/windows/bluetooth_adapter.h index 6f786a95..5313126a 100644 --- a/internal/platform/implementation/windows/bluetooth_adapter.h +++ b/internal/platform/implementation/windows/bluetooth_adapter.h @@ -17,6 +17,7 @@ #include +#include #include #include "internal/platform/implementation/bluetooth_adapter.h"