iLength = MultiByteToWideChar( CP_ACP, 0, pStringIn, -1, NULL, 0 ) ; // pStringIn = "river" iLength = 6
pWideStr = malloc( iLength ) ; //分配6字节内存
MultiByteToWideChar( CP_ACP, 0, pStringIn, -1, pWideStr, iLength ) ; //pWideStr = WCHAR(river)这段程序运行良好.可是有点困扰着我,pWideStr指向的内存块是6字节,而宽字符的"river"需要12个字节才能装下.程序这样不会溢出吗?