<Sound Dev> [PATCH] Fix some assignments of string literals to LPSTR (instead of LPCSTR)

Florian Bomers javasound-dev at bome.com
Thu May 16 11:52:52 UTC 2019


I'm not a JDK committer either...

On 16.05.2019 07:34, Andrew Luo wrote:
> Hi Florian,
> 
> Thanks for the review.
> 
> By the way, I am not a JDK committer, is it possible that you or someone else on this mailing list would be willing to help sponsor this change?
> 
> Thanks,
> 
> -Andrew
> 
> -----Original Message-----
> From: Florian Bomers <javasound-dev at bome.com>
> Sent: Tuesday, May 14, 2019 2:48 AM
> To: Andrew Luo <andrewluotechnologies at outlook.com>; sound-dev at openjdk.java.net
> Subject: Re: <Sound Dev> [PATCH] Fix some assignments of string literals to LPSTR (instead of LPCSTR)
> 
> Hi, the fix looks correct to me.
> Florian
> 
> On 14.05.2019 02:36, Andrew Luo wrote:
>> I've been trying to get the JDK to compile with the new /permissive-
>> switch in VS2017
>> (https://devblogs.microsoft.com/cppblog/permissive-switch/) however
>> there have been a few issues in various parts of the code.  There are
>> a few issues in the libjsound code where we attempt to assign string
>> literals to LPSTR variables (instead of LPCSTR).  I took some time to
>> fix some of these and attached a patch.  Let me know if you have any
>> comments/feedback.  I'm assuming that libjsound is owned by sound-dev,
>> but if I'm mistaken, please do let me know the right team/mailing list
>> to send this to.
>>
>> c:/Users/Andrew/Documents/mercurial/openjdk/jdk/src/java.desktop/windows/native/libjsound/PLATFORM_API_WinOS_DirectSound.cpp(363):
>> error C2440: 'return': cannot convert from 'const char [16]' to 'LPSTR'
>>
>> Thanks,
>>
>> -Andrew
>>
> 
> --
> Florian Bomers
> Bome Software
> 
> everything sounds.
> http://www.bome.com
> __________________________________________________________________
> Bome Software GmbH & Co KG        Gesellschafterin:
> Petra-Kelly-Str. 15               Bome Komplementär GmbH
> 80797 München, Germany            Geschäftsführung: Florian Bömers
> Amtsgericht München HRA95502      Amtsgericht München HRB185574
> 
> 

-- 
Florian Bomers
Bome Software

everything sounds.
http://www.bome.com
__________________________________________________________________
Bome Software GmbH & Co KG        Gesellschafterin:
Petra-Kelly-Str. 15               Bome Komplementär GmbH
80797 München, Germany            Geschäftsführung: Florian Bömers
Amtsgericht München HRA95502      Amtsgericht München HRB185574



More information about the sound-dev mailing list