8224056: Fix some assignments of string literals to LPSTR (instead of LPCSTR)
authorprr
Sun, 02 Jun 2019 12:38:45 -0700
changeset 55191 feb860d41612
parent 55190 55dc1385d1b7
child 55192 26dd6fdc4165
8224056: Fix some assignments of string literals to LPSTR (instead of LPCSTR) Reviewed-by: prr Contributed-by: andrewluotechnologies@outlook.com
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";