Commit in reactos on MAIN
lib/kernel32/file/volume.c+9-71.43 -> 1.44
subsys/system/autochk/autochk.c+11-31.4 -> 1.5
+20-10
2 modified files
fixed building problems

reactos/lib/kernel32/file
volume.c 1.43 -> 1.44
diff -u -r1.43 -r1.44
--- volume.c	21 Nov 2004 06:51:17 -0000	1.43
+++ volume.c	21 Nov 2004 10:39:11 -0000	1.44
@@ -1,4 +1,4 @@
-/* $Id: volume.c,v 1.43 2004/11/21 06:51:17 ion Exp $
+/* $Id: volume.c,v 1.44 2004/11/21 10:39:11 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -161,16 +161,18 @@
 	/* Get the Device Map for this Process */
 	Status = NtQueryInformationProcess(NtCurrentProcess(),
 					   ProcessDeviceMap,
-					   &ProcessDeviceMapInfo.Query,
-					   sizeof(ProcessDeviceMapInfo.Query),
+					   &ProcessDeviceMapInfo,
+					   sizeof(ProcessDeviceMapInfo),
 					   NULL);
-					   
+
 	/* Return the Drive Map */
-	if (!NT_SUCCESS(Status)) {
+	if (!NT_SUCCESS(Status))
+	{
+		SetLastErrorByStatus(Status);
 		return 0;
-	} else {
-		return ProcessDeviceMapInfo.Query.DriveMap;
 	}
+
+        return ProcessDeviceMapInfo.Query.DriveMap;
 }
 
 

reactos/subsys/system/autochk
autochk.c 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- autochk.c	25 Oct 2002 22:08:20 -0000	1.4
+++ autochk.c	21 Nov 2004 10:39:12 -0000	1.5
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: autochk.c,v 1.4 2002/10/25 22:08:20 chorns Exp $
+/* $Id: autochk.c,v 1.5 2004/11/21 10:39:12 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -68,14 +68,22 @@
 VOID STDCALL
 NtProcessStartup(PPEB Peb)
 {
+  PROCESS_DEVICEMAP_INFORMATION DeviceMap;
   ULONG i;
+  NTSTATUS Status;
 
   PrintString("Autochk 0.0.1\n");
+  
+  Status = NtQueryInformationProcess(NtCurrentProcess(),
+                                     ProcessDeviceMap,
+                                     &DeviceMap,
+                                     sizeof(DeviceMap),
+                                     NULL);
 
   for (i = 0; i < 26; i++)
     {
-      if ((SharedUserData->DosDeviceMap & (1 << i)) &&
-	  (SharedUserData->DosDeviceDriveType[i] == DOSDEVICE_DRIVE_FIXED))
+      if ((DeviceMap.Query.DriveMap & (1 << i)) &&
+	  (DeviceMap.Query.DriveType[i] == DOSDEVICE_DRIVE_FIXED))
 	{
 	  PrintString("  Checking drive %c:", 'A'+i);
 	  PrintString("      OK\n");
CVSspam 0.2.8