fixed SetHandleInformation to take dwMask into account. This was accidently removed in r11165. Thanks to mygfya
Modified: trunk/reactos/lib/kernel32/misc/handle.c

Modified: trunk/reactos/lib/kernel32/misc/handle.c
--- trunk/reactos/lib/kernel32/misc/handle.c	2005-12-05 00:18:32 UTC (rev 19902)
+++ trunk/reactos/lib/kernel32/misc/handle.c	2005-12-05 00:21:55 UTC (rev 19903)
@@ -112,8 +112,11 @@
 			  &BytesWritten);
   if (NT_SUCCESS(Status))
   {
-    HandleInfo.Inherit = (dwFlags & HANDLE_FLAG_INHERIT) != 0;
-    HandleInfo.ProtectFromClose = (dwFlags & HANDLE_FLAG_PROTECT_FROM_CLOSE) != 0;
+    if (dwMask & HANDLE_FLAG_INHERIT)
+      HandleInfo.Inherit = (dwFlags & HANDLE_FLAG_INHERIT) != 0;
+    if (dwMask & HANDLE_FLAG_PROTECT_FROM_CLOSE)
+      HandleInfo.ProtectFromClose = (dwFlags & HANDLE_FLAG_PROTECT_FROM_CLOSE) != 0;
+
     Status = NtSetInformationObject (hObject,
 				     ObjectHandleInformation,
 				     &HandleInfo,