Sync to Wine-20050524:
[reactos.git] / reactos / lib / setupapi / queue.c
index 66da7b7..3144707 100644 (file)
@@ -767,6 +767,7 @@ BOOL WINAPI SetupQueueCopySectionW( HSPFILEQ queue, PCWSTR src_root, HINF hinf,
     params.SecurityDescriptor = NULL;\r
 \r
     if (!hlist) hlist = hinf;\r
+    if (!hinf) hinf = hlist;\r
     if (!SetupFindFirstLineW( hlist, section, NULL, &context )) return FALSE;\r
     if (!(params.TargetDirectory = get_destination_dir( hinf, section ))) return FALSE;\r
     do\r