From aaeb01a3e1b51326b6c18789ac5c869617d0ff29 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 1 Apr 2002 21:55:50 +0000 Subject: [PATCH] Changed heap validation. svn path=/trunk/; revision=2801 --- reactos/lib/msvcrt/misc/getargs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/lib/msvcrt/misc/getargs.c b/reactos/lib/msvcrt/misc/getargs.c index 27c059c48fc..f99ecc59c0b 100644 --- a/reactos/lib/msvcrt/misc/getargs.c +++ b/reactos/lib/msvcrt/misc/getargs.c @@ -15,6 +15,7 @@ char *xargv[1024]; char **__argv = xargv; int __argc = 0; +extern HANDLE hHeap; int __getmainargs(int *argc,char ***argv,char ***env,int flag) { @@ -51,7 +52,7 @@ int __getmainargs(int *argc,char ***argv,char ***env,int flag) _acmdln[i]='\0'; __argv[__argc-1] = strdup(_acmdln+afterlastspace); } - HeapValidate(GetProcessHeap(),0,NULL); + HeapValidate(hHeap,0,NULL); *argc = __argc; *argv = __argv;