reactos/lib/kernel32/mem
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;
}