# HG changeset patch # User prr # Date 1559504325 25200 # Node ID feb860d41612de81ece9ecef15bb702e312524da # Parent 55dc1385d1b779409f34dbd0112f63378f2c5d5c 8224056: Fix some assignments of string literals to LPSTR (instead of LPCSTR) Reviewed-by: prr Contributed-by: andrewluotechnologies@outlook.com diff -r 55dc1385d1b7 -r feb860d41612 src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp --- a/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp Thu May 30 17:14:06 2019 -0700 +++ b/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp Sun Jun 02 12:38:45 2019 -0700 @@ -357,7 +357,7 @@ } DS_Info; -LPSTR TranslateDSError(HRESULT hr) { +LPCSTR TranslateDSError(HRESULT hr) { switch(hr) { case DSERR_ALLOCATED: return "DSERR_ALLOCATED";