winpr/nt: Fix wide char string on big endian
authorOndrej Holy <oholy@redhat.com>
Thu, 23 Nov 2017 18:51:57 +0000 (19:51 +0100)
committerOndrej Holy <oholy@redhat.com>
Thu, 23 Nov 2017 19:01:01 +0000 (20:01 +0100)
commite5574f276a9ab0eeec91933e9bba9b7b3a80b0bb
tree2fc3429f5abfa97306971106e7b09dd2b88469f3
parent5dcd1ebb06ebc7bda75b1be0c34f121a7c88482d
winpr/nt: Fix wide char string on big endian

Wide char strings are always little endian encoded and thus
Data_Write_UINT16 has to be used in _RtlAnsiStringToUnicodeString.
It fixes TestIoDevice on big endian machines among others.

https://github.com/FreeRDP/FreeRDP/issues/4231
winpr/libwinpr/nt/nt.c