Juan Lang writes:
>> You are still casting away const...
>
> Indeed I am, but now the warning is harmless: the const pointer is
> only read from, never written to. Making a const pointer in the
> little endian case would make the entire block rather messier, since
> having a non-const pointer i
> You are still casting away const...
Indeed I am, but now the warning is harmless: the const pointer is
only read from, never written to. Making a const pointer in the
little endian case would make the entire block rather messier, since
having a non-const pointer is necessary in the big endian
Juan Lang writes:
> +#ifdef WORDS_BIGENDIAN
> +/* Returns a byte-swapped copy of str, to be freed with HeapFree(). */
> +static LPWSTR PropertyStorage_StringToLE(LPCWSTR str, size_t len)
> +{
> +LPWSTR leStr = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
> +
> +if (leStr)
> +{