<Sound Dev> RFR: 8224056: Fix some assignments of string literals to LPSTR (instead of LPCSTR)

Andrew Luo andrewluotechnologies at outlook.com
Fri May 17 18:03:03 UTC 2019


Hi,

I'm sending out this RFR for this bug: https://bugs.openjdk.java.net/browse/JDK-8224056

Patch is inline below.

Testing done: make, make images, make bundles with both /permissive- (passed --with-extra-cxxflags to configure) and without

Thanks,

-Andrew

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";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/sound-dev/attachments/20190517/764a1017/attachment.html>


More information about the sound-dev mailing list