[ros-diffs] [jmorlan] 34283: Don't use msvcrt functions in kernel32; it will cause bug 3373 to reappear

jmorlan at svn.reactos.org jmorlan at svn.reactos.org
Thu Jul 3 16:57:37 CEST 2008


Author: jmorlan
Date: Thu Jul  3 09:57:37 2008
New Revision: 34283

URL: http://svn.reactos.org/svn/reactos?rev=34283&view=rev
Log:
Don't use msvcrt functions in kernel32; it will cause bug 3373 to reappear

Modified:
    trunk/reactos/dll/win32/kernel32/misc/computername.c

Modified: trunk/reactos/dll/win32/kernel32/misc/computername.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/computername.c?rev=34283&r1=34282&r2=34283&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/computername.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/computername.c [iso-8859-1] Thu Jul  3 09:57:37 2008
@@ -298,7 +298,7 @@
   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'~'))



More information about the Ros-diffs mailing list