struct files_callback_info *info = arg;
if (field[0] == '@') /* special case: copy single file */
- SetupQueueDefaultCopyW( info->queue, info->layout, info->src_root, NULL, field, info->copy_flags );
+ SetupQueueDefaultCopyW( info->queue, info->layout, info->src_root, NULL, &field[1], info->copy_flags );
else
SetupQueueCopySectionW( info->queue, info->src_root, info->layout, hinf, field, info->copy_flags );
return TRUE;
switch (info->type)
{
case 0:
- return SetupInstallFromInfSectionW(info->owner, hinf, field, info->flags,
+ return SetupInstallFromInfSectionW(info->owner, *(HINF*)hinf, field, info->flags,
info->key_root, info->src_root, info->copy_flags, info->callback,
info->context, info->devinfo, info->devinfo_data);
case 1:
- return SetupInstallServicesFromInfSectionExW(hinf, field, info->flags,
+ return SetupInstallServicesFromInfSectionExW(*(HINF*)hinf, field, info->flags,
info->devinfo, info->devinfo_data, info->reserved1, info->reserved2);
default:
ERR("Unknown info type %ld\n", info->type);
LPQUERY_SERVICE_CONFIG ServiceConfig = NULL;
BOOL ret = FALSE;
- HKEY hGroupOrderListKey = INVALID_HANDLE_VALUE;
+ HKEY hGroupOrderListKey = NULL;
LPWSTR ServiceBinary = NULL;
LPWSTR LoadOrderGroup = NULL;
LPWSTR DisplayName = NULL;
CloseServiceHandle(hSCManager);
if (hService != NULL)
CloseServiceHandle(hService);
- if (hGroupOrderListKey != INVALID_HANDLE_VALUE)
+ if (hGroupOrderListKey != NULL)
RegCloseKey(hGroupOrderListKey);
MyFree(ServiceConfig);
MyFree(ServiceBinary);