ok(types[i]&C1_SPACE||broken(types[i]==C1_CNTRL)||broken(types[i]==0),"incorrect types returned for %x -> (%x does not have %x)\n",space_special[i],types[i],C1_SPACE);
}
staticvoidtest_IdnToNameprepUnicode(void)
{
struct{
DWORDin_len;
constWCHARin[64];
DWORDret;
constWCHARout[64];
DWORDflags;
DWORDerr;
DWORDtodo;
}test_data[]={
{
5,{'t','e','s','t',0},
5,{'t','e','s','t',0},
0,0xdeadbeef
},
{
3,{'a',0xe111,'b'},
0,{0},
0,ERROR_INVALID_NAME
},
{
4,{'t',0,'e',0},
0,{0},
0,ERROR_INVALID_NAME
},
{
1,{'T',0},
1,{'T',0},
0,0xdeadbeef
},
{
1,{0},
0,{0},
0,ERROR_INVALID_NAME
},
{
6,{' ','-','/','[',']',0},
6,{' ','-','/','[',']',0},
0,0xdeadbeef
},
{
3,{'a','-','a'},
3,{'a','-','a'},
IDN_USE_STD3_ASCII_RULES,0xdeadbeef
},
{
3,{'a','a','-'},
0,{0},
IDN_USE_STD3_ASCII_RULES,ERROR_INVALID_NAME
},
{/* FoldString is not working as expected when MAP_FOLDCZONE is specified (composition+compatibility) */