[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:
winesync 2023-12-29 22:02:30 +01:00 committed by Hermès Bélusca-Maïto
parent a4231fe307
commit 7b1daaeca6
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 24 additions and 1 deletions

View file

@ -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());

View file

@ -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