mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
fixed building problems
svn path=/trunk/; revision=11732
This commit is contained in:
parent
2a42da87f2
commit
dc61134cf1
2 changed files with 20 additions and 10 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -161,16 +161,18 @@ GetLogicalDrives(VOID)
|
||||||
/* Get the Device Map for this Process */
|
/* Get the Device Map for this Process */
|
||||||
Status = NtQueryInformationProcess(NtCurrentProcess(),
|
Status = NtQueryInformationProcess(NtCurrentProcess(),
|
||||||
ProcessDeviceMap,
|
ProcessDeviceMap,
|
||||||
&ProcessDeviceMapInfo.Query,
|
&ProcessDeviceMapInfo,
|
||||||
sizeof(ProcessDeviceMapInfo.Query),
|
sizeof(ProcessDeviceMapInfo),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/* Return the Drive Map */
|
/* Return the Drive Map */
|
||||||
if (!NT_SUCCESS(Status)) {
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
SetLastErrorByStatus(Status);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
|
||||||
return ProcessDeviceMapInfo.Query.DriveMap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ProcessDeviceMapInfo.Query.DriveMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -68,14 +68,22 @@ PrintString(char* fmt,...)
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
NtProcessStartup(PPEB Peb)
|
NtProcessStartup(PPEB Peb)
|
||||||
{
|
{
|
||||||
|
PROCESS_DEVICEMAP_INFORMATION DeviceMap;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
PrintString("Autochk 0.0.1\n");
|
PrintString("Autochk 0.0.1\n");
|
||||||
|
|
||||||
|
Status = NtQueryInformationProcess(NtCurrentProcess(),
|
||||||
|
ProcessDeviceMap,
|
||||||
|
&DeviceMap,
|
||||||
|
sizeof(DeviceMap),
|
||||||
|
NULL);
|
||||||
|
|
||||||
for (i = 0; i < 26; i++)
|
for (i = 0; i < 26; i++)
|
||||||
{
|
{
|
||||||
if ((SharedUserData->DosDeviceMap & (1 << i)) &&
|
if ((DeviceMap.Query.DriveMap & (1 << i)) &&
|
||||||
(SharedUserData->DosDeviceDriveType[i] == DOSDEVICE_DRIVE_FIXED))
|
(DeviceMap.Query.DriveType[i] == DOSDEVICE_DRIVE_FIXED))
|
||||||
{
|
{
|
||||||
PrintString(" Checking drive %c:", 'A'+i);
|
PrintString(" Checking drive %c:", 'A'+i);
|
||||||
PrintString(" OK\n");
|
PrintString(" OK\n");
|
||||||
|
|
Loading…
Reference in a new issue