Commit in reactos/lib/kernel32/mem on MAIN
isbad.c+5-51.10 -> 1.11
do something in wcsnlen() - but it should be (as strnlen() in this file) not implemented there, just so IsBadStringPtrW() works even though it lacks SEH protection at the moment

reactos/lib/kernel32/mem
isbad.c 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- isbad.c	23 Jan 2004 21:16:03 -0000	1.10
+++ isbad.c	14 Sep 2004 14:01:25 -0000	1.11
@@ -1,4 +1,4 @@
-/* $Id: isbad.c,v 1.10 2004/01/23 21:16:03 ekohl Exp $
+/* $Id: isbad.c,v 1.11 2004/09/14 14:01:25 weiden Exp $
  *
  * lib/kernel32/mem/isbad.c
  *
@@ -12,7 +12,7 @@
 
 /* FIXME: Stubs. What is it for? */
 /*
- * @unimplemented
+ * @implemented
  */
 UINT
 wcsnlen (
@@ -20,9 +20,9 @@
 	UINT	ucchMax
 	)
 {
-	DPRINT1("wcsnlen stub called\n");
-
-	return 0;
+  UINT i = 0;
+  while( lpsz[i] && i < ucchMax ) i++;
+  return i;
 }
 
 
CVSspam 0.2.8