| @@ -682,7 +682,7 @@ File File::getLinkedTarget() const | |||||
| CloseHandle (h); | CloseHandle (h); | ||||
| const StringRef prefix ("\\\\?\\"); | const StringRef prefix ("\\\\?\\"); | ||||
| const String path (buffer); | |||||
| const String path (buffer.get()); | |||||
| // It turns out that GetFinalPathNameByHandleW prepends \\?\ to the path. | // It turns out that GetFinalPathNameByHandleW prepends \\?\ to the path. | ||||
| // This is not a bug, it's feature. See MSDN for more information. | // This is not a bug, it's feature. See MSDN for more information. | ||||
| @@ -231,7 +231,7 @@ public: | |||||
| *currentCharacter++ = '0'; | *currentCharacter++ = '0'; | ||||
| } | } | ||||
| #if JUCE_MSVC | |||||
| #if JUCE_WINDOWS | |||||
| static _locale_t locale = _create_locale (LC_ALL, "C"); | static _locale_t locale = _create_locale (LC_ALL, "C"); | ||||
| return _strtod_l (&buffer[0], nullptr, locale); | return _strtod_l (&buffer[0], nullptr, locale); | ||||
| #else | #else | ||||
| @@ -202,7 +202,7 @@ void FileChooser::showPlatformDialog (Array<File>& results, const String& title_ | |||||
| if (info.returnedString.isNotEmpty()) | if (info.returnedString.isNotEmpty()) | ||||
| { | { | ||||
| results.add (File (String (files)).getSiblingFile (info.returnedString)); | |||||
| results.add (File (String (files.get())).getSiblingFile (info.returnedString)); | |||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| @@ -287,12 +287,12 @@ void FileChooser::showPlatformDialog (Array<File>& results, const String& title_ | |||||
| while (*filename != 0) | while (*filename != 0) | ||||
| { | { | ||||
| results.add (File (String (files)).getChildFile (String (filename))); | |||||
| results.add (File (String (files.get())).getChildFile (String (filename))); | |||||
| filename += wcslen (filename) + 1; | filename += wcslen (filename) + 1; | ||||
| } | } | ||||
| } | } | ||||
| else if (files[0] != 0) | else if (files[0] != 0) | ||||
| { | { | ||||
| results.add (File (String (files))); | |||||
| results.add (File (String (files.get()))); | |||||
| } | } | ||||
| } | } | ||||
| @@ -3449,7 +3449,7 @@ private: | |||||
| HeapBlock<TCHAR> buffer; | HeapBlock<TCHAR> buffer; | ||||
| buffer.calloc (stringSizeBytes / sizeof (TCHAR) + 1); | buffer.calloc (stringSizeBytes / sizeof (TCHAR) + 1); | ||||
| ImmGetCompositionString (hImc, type, buffer, (DWORD) stringSizeBytes); | ImmGetCompositionString (hImc, type, buffer, (DWORD) stringSizeBytes); | ||||
| return String (buffer); | |||||
| return String (buffer.get()); | |||||
| } | } | ||||
| return {}; | return {}; | ||||