From d01e8aafb455bfa07a5944eb0b160ebf6098f73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 17 Jan 2024 11:20:37 +0100 Subject: [PATCH] UWP: Fix VS 2017 build with new `get_unique_id` method Fixes this error: ``` platform\uwp\os_uwp.cpp(715): error C3149: 'Windows::Storage::Streams::IBuffer': cannot use this type here without a top-level '^' ``` --- platform/uwp/os_uwp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 9078a7b32fb..e309270a7a8 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -712,7 +712,7 @@ void OS_UWP::set_icon(const Ref &p_icon) { String OS_UWP::get_unique_id() const { // Get the hardware token and read it into an array of bytes. HardwareToken ^ token = HardwareIdentification::GetPackageSpecificToken(nullptr); - IBuffer hwId = token->Id; + IBuffer ^ hwId = token->Id; DataReader ^ dr = DataReader::FromBuffer(hwId); uint8_t *data = new uint8_t[hwId->Length]; dr->ReadBytes(Platform::ArrayReference(data, hwId->Length));