Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

hi,
i have a very strange problem:

char szBuf2[100];
AECHAR szBuf[] = {'a','b','c','d','e','f','\0'}; //wide-character string
SPRINTF(szBuf2,"%S",szBuf);
DBGPRINTF(szBuf2); //szBuf2="abcef"

why it prints "abcef" instead of "abcdef" ???

it seems this happens only to 6 length string (the 4'th character is missing)

(WSTR_TO_CHR works fine)

what i'm doing wrong?

thanks in advance

thank you radub, so it seems that it is realy a bug..

thank you radub, so it seems that it is realy a bug..