C00000BE hack-around

Luke Kenneth Casson Leighton lkcl at switchboard.net
Sun Feb 7 23:53:49 GMT 1999

> The cause of this problem seems to be certain unicode strings stored
> internally in byte arrays as "a\0b\0" rather than "\0a\0b", so when
> trying to be converted to ascii strings, routines like unistrn2 get
> it wrong and return "\0\0" instead of "ab".

as matt chapman mentions, the use of SVAL instead of a typecast will swap
the byte correctly, converting char* to wide-char correctly on a
per-system basis.

your solution is correct for you, benjamin, because you are using a server
that has a byte order opposite to intel processors.

More information about the samba-technical mailing list