'%','s','&','P','r','o','d','_','%','s','&',
'R','e','v','_','%','s','\\','%','s','&','0',0};
static const WCHAR dos_devicesW[] = {'\\','D','o','s','D','e','v','i','c','e','s',0};
+ static const WCHAR disk_driveW[] = {'D','i','s','k',' ','d','r','i','v','e',0};
WCHAR diskW[] = {'\\','D','o','s','D','e','v','i','c','e','s','\\',
'A' + drive->drive,':',0};
LPWSTR devnameW, vendorW, productW, revisionW, serialW, linkW, device_idW = NULL;
ret = SetupDiRegisterDeviceInfo( set, &devInfo, 0, NULL, NULL, NULL );
if (!ret) goto done;
}
+ SetupDiGetDeviceRegistryPropertyW( set, &devInfo, SPDRP_DEVICEDESC,
+ NULL, NULL, 0, &size );
+ if (!size)
+ SetupDiSetDeviceRegistryPropertyW( set, &devInfo, SPDRP_DEVICEDESC,
+ (BYTE *)disk_driveW, sizeof(disk_driveW) );
interfaceData.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
ret = SetupDiCreateDeviceInterfaceW( set, &devInfo, &GUID_DEVINTERFACE_DISK,
NULL, 0, &interfaceData );