[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch] Replace deprecated WSAStringToAddressA
[Thread Prev] | [Thread Next]
- Subject: Re: [Patch] Replace deprecated WSAStringToAddressA
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 7 Jun 2017 08:09:00 +0200
- To: libssh@xxxxxxxxxx
On 7/06/17 07:40, Chris Ruehl wrote: > - rc = WSAStringToAddressA((LPSTR) str, > + rc = WSAStringToAddressW((LPWSTR) str, Hi Chris, Does the cast from char * to LPWSTR really work that way? I'm not very well experienced in Windows programming but if I recall properly you're supposed to convert the C string into a unicode wide string before using the -W family functions. Am I mistaken? Thanks, Aris
Re: [Patch] Replace deprecated WSAStringToAddressA | Chris Ruehl <chris.ruehl@xxxxxxxxxxxx> |
[Patch] Replace deprecated WSAStringToAddressA | Chris Ruehl <chris.ruehl@xxxxxxxxxxxx> |