Author: jgardou
Date: Thu Sep 12 20:18:26 2013
New Revision: 60062
URL:
http://svn.reactos.org/svn/reactos?rev=60062&view=rev
Log:
[SETUPAPI]
SourceDisksFiles and SourceDisksNames inf section can be platform dependant.
Modified:
trunk/reactos/dll/win32/setupapi/queue.c
Modified: trunk/reactos/dll/win32/setupapi/queue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/queue.c…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/queue.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/queue.c [iso-8859-1] Thu Sep 12 20:18:26 2013
@@ -283,9 +283,12 @@
INFCONTEXT file_ctx, disk_ctx;
INT id, diskid;
DWORD len, len2;
+ WCHAR SectionName[MAX_PATH];
/* find the SourceDisksFiles entry */
- if (!SetupFindFirstLineW( hinf, SourceDisksFiles, op->src_file, &file_ctx ))
+ if(!SetupDiGetActualSectionToInstallW(hinf, SourceDisksFiles, SectionName, MAX_PATH,
NULL, NULL))
+ return;
+ if (!SetupFindFirstLineW( hinf, SectionName, op->src_file, &file_ctx ))
{
if ((op->style & (SP_COPY_SOURCE_ABSOLUTE|SP_COPY_SOURCEPATH_ABSOLUTE)))
return;
/* no specific info, use .inf file source directory */
@@ -295,7 +298,9 @@
if (!SetupGetIntField( &file_ctx, 1, &diskid )) return;
/* now find the diskid in the SourceDisksNames section */
- if (!SetupFindFirstLineW( hinf, SourceDisksNames, NULL, &disk_ctx )) return;
+ if(!SetupDiGetActualSectionToInstallW(hinf, SourceDisksNames, SectionName, MAX_PATH,
NULL, NULL))
+ return;
+ if (!SetupFindFirstLineW( hinf, SectionName, NULL, &disk_ctx )) return;
for (;;)
{
if (SetupGetIntField( &disk_ctx, 0, &id ) && (id == diskid))
break;