[ros-diffs] [gschneider] 44313: [msvcrt] - Validate the process heap - Remove validation as soon as this function is tested

gschneider at svn.reactos.org gschneider at svn.reactos.org
Sat Nov 28 20:35:47 CET 2009


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?rev=44313&r1=44312&r2=44313&view=diff
==============================================================================
--- 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)




More information about the Ros-diffs mailing list