From a5d546b25da01409639ac09c5f25da509bd0e3eb Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 11 Jan 2019 14:18:10 +0000 Subject: [PATCH] Windows: Use GetComputerNameEx() in SystemStats::getComputerName() to allow names longer than 15 characters --- modules/juce_core/native/juce_win32_SystemStats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_win32_SystemStats.cpp b/modules/juce_core/native/juce_win32_SystemStats.cpp index 28ad6cc30b..d9a84082c9 100644 --- a/modules/juce_core/native/juce_win32_SystemStats.cpp +++ b/modules/juce_core/native/juce_win32_SystemStats.cpp @@ -472,7 +472,7 @@ String SystemStats::getComputerName() { TCHAR text[128] = { 0 }; auto len = (DWORD) numElementsInArray (text) - 1; - GetComputerName (text, &len); + GetComputerNameEx (ComputerNamePhysicalDnsHostname, text, &len); return String (text, len); }