Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
34556854
Commit
34556854
authored
May 26, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog file.
parent
29b3a163
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
misc.c
dlls/setupapi/misc.c
+23
-1
No files found.
dlls/setupapi/misc.c
View file @
34556854
...
...
@@ -950,9 +950,12 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
DWORD
buffer_size
,
PDWORD
required_size
,
PWSTR
*
component
)
{
BOOL
ret
=
FALSE
;
WCHAR
target
[
MAX_PATH
],
*
p
;
WCHAR
target
[
MAX_PATH
],
catalog_file
[
MAX_PATH
],
*
p
;
static
const
WCHAR
inf
[]
=
{
'\\'
,
'i'
,
'n'
,
'f'
,
'\\'
,
0
};
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
};
DWORD
size
;
HINF
hinf
;
TRACE
(
"%s, %s, %d, %d, %p, %d, %p, %p
\n
"
,
debugstr_w
(
source
),
debugstr_w
(
location
),
media_type
,
style
,
dest
,
buffer_size
,
required_size
,
component
);
...
...
@@ -1036,6 +1039,25 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
}
}
hinf
=
SetupOpenInfFileW
(
source
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
hinf
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
if
(
SetupGetLineTextW
(
NULL
,
hinf
,
wszVersion
,
wszCatalogFile
,
catalog_file
,
sizeof
(
catalog_file
)
/
sizeof
(
catalog_file
[
0
]),
NULL
))
{
WCHAR
source_cat
[
MAX_PATH
];
strcpyW
(
source_cat
,
source
);
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
(
!
(
ret
=
CopyFileW
(
source
,
target
,
(
style
&
SP_COPY_NOOVERWRITE
)
!=
0
)))
return
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment