diff --git a/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp b/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp --- a/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp +++ b/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp @@ -357,7 +357,7 @@ } DS_Info; -LPSTR TranslateDSError(HRESULT hr) { +LPCSTR TranslateDSError(HRESULT hr) { switch(hr) { case DSERR_ALLOCATED: return "DSERR_ALLOCATED";