diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 673aab6bc..8838392f3 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));