C00000BE hack-around

Luke Kenneth Casson Leighton lkcl at switchboard.net
Mon Feb 8 23:44:52 GMT 1999


ok.

jeremy's fixed this in 2.0.2, i've fixed it in main branch.  could people
please attempt to download the latest cvs (and try a password change if
you have nt 4 sp3) and test it?

if you are using cvs main branch be warned: you may get a BSOD when
logging in, i have *no* idea what is causing this!

luke


> > 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-ntdom mailing list