Don't use msvcrt functions in kernel32; it will cause bug 3373 to reappear

svn path=/trunk/; revision=34283
This commit is contained in:
Jeffrey Morlan
2008-07-03 14:57:37 +00:00
parent 4b6c66431e
commit 9865603d81
@@ -298,7 +298,7 @@ IsValidComputerName (
p = (PWCHAR)lpComputerName;
while (*p != 0)
{
if (!(iswalnum(*p) || *p == L'!' || *p == L'@' || *p == L'#' ||
if (!(iswctype(*p, _ALPHA | _DIGIT) || *p == L'!' || *p == L'@' || *p == L'#' ||
*p == L'$' || *p == L'%' || *p == L'^' || *p == L'&' || *p == L'\'' ||
*p == L')' || *p == L'(' || *p == L'.' || *p == L'-' || *p == L'_' ||
*p == L'{' || *p == L'}' || *p == L'~'))