Commit in reactos/lib/kernel32/misc on MAIN
error.c+2-21.22 -> 1.23
handle.c+4-41.17 -> 1.18
+6-6
2 modified files
minor fixes

reactos/lib/kernel32/misc
error.c 1.22 -> 1.23
diff -u -r1.22 -r1.23
--- error.c	23 Jan 2004 21:16:03 -0000	1.22
+++ error.c	24 Oct 2004 12:36:12 -0000	1.23
@@ -1,4 +1,4 @@
-/* $Id: error.c,v 1.22 2004/01/23 21:16:03 ekohl Exp $
+/* $Id: error.c,v 1.23 2004/10/24 12:36:12 weiden Exp $
  *
  * reactos/lib/kernel32/misc/error.c
  *
@@ -45,7 +45,7 @@
     BEEP_SET_PARAMETERS BeepSetParameters;
     DWORD dwReturned;
 
-    hBeep = CreateFileA("\\\\.\\Beep",
+    hBeep = CreateFileW(L"\\\\.\\Beep",
                        FILE_GENERIC_READ | FILE_GENERIC_WRITE,
                        0,
                        NULL,

reactos/lib/kernel32/misc
handle.c 1.17 -> 1.18
diff -u -r1.17 -r1.18
--- handle.c	3 Oct 2004 10:05:56 -0000	1.17
+++ handle.c	24 Oct 2004 12:36:12 -0000	1.18
@@ -1,4 +1,4 @@
-/* $Id: handle.c,v 1.17 2004/10/03 10:05:56 weiden Exp $
+/* $Id: handle.c,v 1.18 2004/10/24 12:36:12 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -115,8 +115,8 @@
 			  &BytesWritten);
   if (NT_SUCCESS(Status))
   {
-    HandleInfo.Inherit = ((dwFlags & HANDLE_FLAG_INHERIT) ? TRUE : FALSE);
-    HandleInfo.ProtectFromClose = ((dwFlags & HANDLE_FLAG_PROTECT_FROM_CLOSE) ? TRUE : FALSE);
+    HandleInfo.Inherit = (dwFlags & HANDLE_FLAG_INHERIT) != 0;
+    HandleInfo.ProtectFromClose = (dwFlags & HANDLE_FLAG_PROTECT_FROM_CLOSE) != 0;
     Status = NtSetInformationObject (hObject,
 				     ObjectHandleInformation,
 				     &HandleInfo,
@@ -223,7 +223,7 @@
       }
 
       *lpTargetHandle = DuplicateConsoleHandle(hSourceHandle, dwDesiredAccess, bInheritHandle, dwOptions);
-      return *lpTargetHandle != INVALID_HANDLE_VALUE ? TRUE : FALSE;
+      return *lpTargetHandle != INVALID_HANDLE_VALUE;
    }
       
    Status = NtDuplicateObject(hSourceProcessHandle,
CVSspam 0.2.8