Commit in reactos/lib/kernel32/misc on MAIN
toolhelp.c+2-21.8 -> 1.9
pass lstrcpynW() the maximum number of characters, not bytes

reactos/lib/kernel32/misc
toolhelp.c 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- toolhelp.c	31 Oct 2004 19:24:31 -0000	1.8
+++ toolhelp.c	5 Nov 2004 11:51:18 -0000	1.9
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: toolhelp.c,v 1.8 2004/10/31 19:24:31 weiden Exp $
+/* $Id: toolhelp.c,v 1.9 2004/11/05 11:51:18 weiden Exp $
  *
  * KERNEL32.DLL toolhelp functions
  *
@@ -402,7 +402,7 @@
       {
         lstrcpynW(ProcessListEntry->szExeFile,
                   ProcessInfo->ImageName.Buffer,
-                  min(ProcessInfo->ImageName.Length, sizeof(ProcessListEntry->szExeFile) / sizeof(ProcessListEntry->szExeFile[0])));
+                  min(ProcessInfo->ImageName.Length / sizeof(WCHAR), sizeof(ProcessListEntry->szExeFile) / sizeof(ProcessListEntry->szExeFile[0])));
       }
       else
       {
CVSspam 0.2.8