Author: gschneider
Date: Sat Nov 28 20:35:47 2009
New Revision: 44313
URL:
http://svn.reactos.org/svn/reactos?rev=44313&view=rev
Log:
[msvcrt]
- Validate the process heap
- Remove validation as soon as this function is tested
Modified:
trunk/reactos/lib/sdk/crt/misc/getargs.c
Modified: trunk/reactos/lib/sdk/crt/misc/getargs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/misc/getargs.c…
==============================================================================
--- trunk/reactos/lib/sdk/crt/misc/getargs.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/misc/getargs.c [iso-8859-1] Sat Nov 28 20:35:47 2009
@@ -21,8 +21,6 @@
int __argc = 0;
extern wchar_t **__winitenv;
-
-extern HANDLE hHeap;
char* strndup(char* name, size_t len)
{
@@ -179,7 +177,7 @@
}
/*
- * @unimplemented
+ * @implemented
*/
void __getmainargs(int* argc, char*** argv, char*** env, int expand_wildcards, int*
new_mode)
{
@@ -243,7 +241,7 @@
aexpand(strndup(_acmdln+afterlastspace, i - afterlastspace), doexpand);
}
- HeapValidate(hHeap, 0, NULL);
+ HeapValidate(GetProcessHeap(), 0, NULL);
*argc = __argc;
if (__argv == NULL)
@@ -259,7 +257,7 @@
}
/*
- * @unimplemented
+ * @implemented
*/
void __wgetmainargs(int* argc, wchar_t*** wargv, wchar_t*** wenv,
int expand_wildcards, int* new_mode)
@@ -323,7 +321,7 @@
wexpand(wcsndup(_wcmdln+afterlastspace, i - afterlastspace), doexpand);
}
- HeapValidate(hHeap, 0, NULL);
+ HeapValidate(GetProcessHeap(), 0, NULL);
*argc = __argc;
if (__wargv == NULL)