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); }