[PATCH 1/2] mountmgr: Populate HKLM\HARDWARE\DEVICEMAP\Scsi here instead of in kernel32.
Alexandre Julliard
julliard at winehq.org
Mon Nov 25 06:27:55 CST 2019
Chip Davis <cdavis at codeweavers.com> writes:
> @@ -494,6 +499,22 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
> RegCreateKeyExW( HKEY_LOCAL_MACHINE, mounted_devicesW, 0, NULL,
> REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &mount_key, NULL );
>
> + if (!RegCreateKeyExW( HKEY_LOCAL_MACHINE, devicemapW, 0, NULL, REG_OPTION_VOLATILE,
> + KEY_ALL_ACCESS, NULL, &devicemap_key, NULL ))
> + {
> + HKEY hkey;
> + if (!RegCreateKeyExW( devicemap_key, parallelW, 0, NULL, REG_OPTION_VOLATILE,
> + KEY_ALL_ACCESS, NULL, &hkey, NULL ))
> + RegCloseKey( hkey );
> + if (!RegCreateKeyExW( devicemap_key, serialW, 0, NULL, REG_OPTION_VOLATILE,
> + KEY_ALL_ACCESS, NULL, &hkey, NULL ))
These are already created by the respective drivers, it doesn't seem
necessary to do it twice.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list