mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Changed heap validation.
svn path=/trunk/; revision=2801
This commit is contained in:
parent
0ea281268b
commit
aaeb01a3e1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue