mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Now ZwLoadDriver() uses the registry path instead of a file name to load a driver.
svn path=/trunk/; revision=3059
This commit is contained in:
parent
9d3870ce78
commit
6f7c3842bc
3 changed files with 6 additions and 18 deletions
|
@ -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: cdfs.c,v 1.3 2002/05/28 16:11:17 ekohl Exp $
|
||||
/* $Id: cdfs.c,v 1.4 2002/06/12 23:35:55 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -119,12 +119,8 @@ FsRecCdfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
case IRP_MN_LOAD_FILE_SYSTEM:
|
||||
DPRINT("Cdfs: IRP_MN_LOAD_FILE_SYSTEM\n");
|
||||
#if 0
|
||||
RtlInitUnicodeString(&RegistryPath,
|
||||
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Services\\Cdfs");
|
||||
#endif
|
||||
RtlInitUnicodeString(&RegistryPath,
|
||||
L"\\SystemRoot\\system32\\drivers\\cdfs.sys");
|
||||
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Cdfs");
|
||||
Status = ZwLoadDriver(&RegistryPath);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
|
@ -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: fat.c,v 1.2 2002/05/15 18:02:59 ekohl Exp $
|
||||
/* $Id: fat.c,v 1.3 2002/06/12 23:35:55 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -117,12 +117,8 @@ FsRecVfatFsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
case IRP_MN_LOAD_FILE_SYSTEM:
|
||||
DPRINT("FAT: IRP_MN_LOAD_FILE_SYSTEM\n");
|
||||
#if 0
|
||||
RtlInitUnicodeString(&RegistryPath,
|
||||
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Services\\Vfatfs");
|
||||
#endif
|
||||
RtlInitUnicodeString(&RegistryPath,
|
||||
L"\\SystemRoot\\system32\\drivers\\vfatfs.sys");
|
||||
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Vfatfs");
|
||||
Status = ZwLoadDriver(&RegistryPath);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
|
@ -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: ntfs.c,v 1.3 2002/05/28 16:11:17 ekohl Exp $
|
||||
/* $Id: ntfs.c,v 1.4 2002/06/12 23:35:55 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -118,12 +118,8 @@ FsRecNtfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
case IRP_MN_LOAD_FILE_SYSTEM:
|
||||
DPRINT("NTFS: IRP_MN_LOAD_FILE_SYSTEM\n");
|
||||
#if 0
|
||||
RtlInitUnicodeString(&RegistryPath,
|
||||
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Services\\Ntfs");
|
||||
#endif
|
||||
RtlInitUnicodeString(&RegistryPath,
|
||||
L"\\SystemRoot\\system32\\drivers\\ntfs.sys");
|
||||
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Ntfs");
|
||||
Status = ZwLoadDriver(&RegistryPath);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue