Author: hbelusca
Date: Sun Jul 14 14:52:39 2013
New Revision: 59485
URL:
http://svn.reactos.org/svn/reactos?rev=59485&view=rev
Log:
[KERNEL32]
Fix parameters usage when calling NtDuplicateObject.
Modified:
trunk/reactos/dll/win32/kernel32/client/proc.c
Modified: trunk/reactos/dll/win32/kernel32/client/proc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/proc.c [iso-8859-1] Sun Jul 14 14:52:39 2013
@@ -52,6 +52,7 @@
/* FUNCTIONS ****************************************************************/
+// NOTE: Code duplicated from BasepDuplicateAndWriteHandle
VOID
WINAPI
StuffStdHandle(IN HANDLE ProcessHandle,
@@ -67,9 +68,8 @@
StandardHandle,
ProcessHandle,
&DuplicatedHandle,
- DUPLICATE_SAME_ACCESS | DUPLICATE_SAME_ATTRIBUTES,
- 0,
- 0);
+ 0, 0,
+ DUPLICATE_SAME_ACCESS | DUPLICATE_SAME_ATTRIBUTES);
if (NT_SUCCESS(Status))
{
/* Write it */
@@ -715,6 +715,7 @@
/*
* Duplicates a standard handle and writes it where requested.
*/
+// NOTE: Code duplicated from StuffStdHandle
VOID
WINAPI
BasepDuplicateAndWriteHandle(IN HANDLE ProcessHandle,
@@ -736,9 +737,8 @@
StandardHandle,
ProcessHandle,
&DuplicatedHandle,
- DUPLICATE_SAME_ACCESS | DUPLICATE_SAME_ATTRIBUTES,
- 0,
- 0);
+ 0, 0,
+ DUPLICATE_SAME_ACCESS | DUPLICATE_SAME_ATTRIBUTES);
if (NT_SUCCESS(Status))
{
/* Write it */