* On Wed, 16 Nov 2005, Robert Shearman wrote:
- Saulius Krasuckas wrote:
WideCharToMultiByte(CP_ACP, 0, dest, -1, destA, MAX_PATH, NULL, NULL);
szA = lstrlenA(destA);
szW = lstrlenW(dest);
ok( szA == szW, "profile name conversion wasn't successfull: %d chars vs %d chars\n", szA, szW); /* Check if the profile is really gone */
This looks incorrect. Think about this case: "e" and the acute accent in separate characters -> "é"
Thanks, Rob. I was too lazy to dig into unicode stuff and just made such assumption. :) Lets go back and check ret value of WideCharToMultiByte().