diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-24 22:50:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 22:50:23 +0200 |
commit | 0d1dacc902904d6eedc74f9a0a04069e6111591d (patch) | |
tree | 8fecb2611ea65732035fd4c97272a65898b3e3dc /platform | |
parent | 887a6065691011b31bbc459d64ce00878f7a80de (diff) | |
parent | f3979527de895fb37b03d739a76d9efd9cf57819 (diff) |
Merge pull request #61255 from MaxIsJoe/fixosgetuniqueidstringissue
Diffstat (limited to 'platform')
-rw-r--r-- | platform/windows/os_windows.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 6f414c094c..b5423e62bf 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -951,9 +951,9 @@ String OS_Windows::get_user_data_dir() const { } String OS_Windows::get_unique_id() const { - HW_PROFILE_INFO HwProfInfo; - ERR_FAIL_COND_V(!GetCurrentHwProfile(&HwProfInfo), ""); - return String::utf16((const char16_t *)(HwProfInfo.szHwProfileGuid), HW_PROFILE_GUIDLEN); + HW_PROFILE_INFOA HwProfInfo; + ERR_FAIL_COND_V(!GetCurrentHwProfileA(&HwProfInfo), ""); + return String((HwProfInfo.szHwProfileGuid), HW_PROFILE_GUIDLEN); } bool OS_Windows::_check_internal_feature_support(const String &p_feature) { |