mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 09:21:31 +00:00
[WINESYNC] setupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog file.
wine commit id 34556854eda0de9d098968e8d948090d44030d25 by Rob Shearman <rob@codeweavers.com> SYNC NOTE: Adapted for ReactOS code. Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
This commit is contained in:
parent
a4231fe307
commit
7b1daaeca6
|
@ -2348,6 +2348,10 @@ BOOL WINAPI SetupCopyOEMInfW(
|
|||
LPWSTR pFullFileName = NULL;
|
||||
LPWSTR pFileName; /* Pointer into pFullFileName buffer */
|
||||
HANDLE source_file = INVALID_HANDLE_VALUE;
|
||||
WCHAR catalog_file[MAX_PATH], *p;
|
||||
static const WCHAR wszVersion[] = { 'V','e','r','s','i','o','n',0 };
|
||||
static const WCHAR wszCatalogFile[] = { 'C','a','t','a','l','o','g','F','i','l','e',0 };
|
||||
HINF hinf;
|
||||
|
||||
if (OEMSourceMediaType == SPOST_PATH || OEMSourceMediaType == SPOST_URL)
|
||||
FIXME("OEMSourceMediaType 0x%lx ignored\n", OEMSourceMediaType);
|
||||
|
@ -2519,6 +2523,25 @@ BOOL WINAPI SetupCopyOEMInfW(
|
|||
sprintfW(pFileName, OemFileSpecification, NextFreeNumber);
|
||||
TRACE("Next available file is %s\n", debugstr_w(pFileName));
|
||||
|
||||
hinf = SetupOpenInfFileW( SourceInfFileName, NULL, INF_STYLE_WIN4, NULL );
|
||||
if (hinf == INVALID_HANDLE_VALUE) goto cleanup;
|
||||
|
||||
if (SetupGetLineTextW( NULL, hinf, wszVersion, wszCatalogFile, catalog_file,
|
||||
sizeof(catalog_file)/sizeof(catalog_file[0]), NULL ))
|
||||
{
|
||||
WCHAR source_cat[MAX_PATH];
|
||||
strcpyW( source_cat, SourceInfFileName );
|
||||
|
||||
p = strrchrW( source_cat, '\\' );
|
||||
if (p) p++;
|
||||
else p = source_cat;
|
||||
|
||||
strcpyW( p, catalog_file );
|
||||
|
||||
FIXME("install catalog file %s\n", debugstr_w( source_cat ));
|
||||
}
|
||||
SetupCloseInfFile( hinf );
|
||||
|
||||
if (!CopyFileW(SourceInfFileName, pFullFileName, TRUE))
|
||||
{
|
||||
TRACE("CopyFileW() failed with error 0x%lx\n", GetLastError());
|
||||
|
|
|
@ -5,4 +5,4 @@ files:
|
|||
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
|
||||
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
|
||||
tags:
|
||||
wine: 9f2a62ed0a41701fd8e0e767b4e20c2988a78f0d
|
||||
wine: 34556854eda0de9d098968e8d948090d44030d25
|
||||
|
|
Loading…
Reference in a new issue