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
04fada90
Commit
04fada90
authored
May 08, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
May 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Improve the stub for SetupQueryInfOriginalFileInformation
to return information for OriginalCatalogName based on information in the installed inf file.
parent
672a6113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
query.c
dlls/setupapi/query.c
+20
-4
No files found.
dlls/setupapi/query.c
View file @
04fada90
...
...
@@ -652,8 +652,12 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW(
PSP_ORIGINAL_FILE_INFO_W
OriginalFileInfo
)
{
LPCWSTR
inf_name
;
LPCWSTR
inf_path
;
HINF
hinf
;
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
};
FIXME
(
"(%p, %d, %p, %p): stub
\n
"
,
InfInformation
,
InfIndex
,
FIXME
(
"(%p, %d, %p, %p): s
emi-s
tub
\n
"
,
InfInformation
,
InfIndex
,
AlternativePlatformInfo
,
OriginalFileInfo
);
if
(
OriginalFileInfo
->
cbSize
!=
sizeof
(
*
OriginalFileInfo
))
...
...
@@ -662,18 +666,30 @@ BOOL WINAPI SetupQueryInfOriginalFileInformationW(
return
ERROR_INVALID_USER_BUFFER
;
}
inf_path
=
(
LPWSTR
)
&
InfInformation
->
VersionData
[
0
];
/* FIXME: we should get OriginalCatalogName from CatalogFile line in
* the original inf file and cache it, but that would require building a
* .pnf file. */
OriginalFileInfo
->
OriginalCatalogName
[
0
]
=
'\0'
;
hinf
=
SetupOpenInfFileW
(
inf_path
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
!
hinf
)
return
FALSE
;
if
(
!
SetupGetLineTextW
(
NULL
,
hinf
,
wszVersion
,
wszCatalogFile
,
OriginalFileInfo
->
OriginalCatalogName
,
sizeof
(
OriginalFileInfo
->
OriginalCatalogName
)
/
sizeof
(
OriginalFileInfo
->
OriginalCatalogName
[
0
]),
NULL
))
{
OriginalFileInfo
->
OriginalCatalogName
[
0
]
=
'\0'
;
}
SetupCloseInfFile
(
hinf
);
/* FIXME: not quite correct as we just return the same file name as
* destination (copied) inf file, not the source (original) inf file.
* to fix it properly would require building a .pnf file */
/* file name is stored in VersionData field of InfInformation */
inf_name
=
strrchrW
(
(
LPWSTR
)
&
InfInformation
->
VersionData
[
0
]
,
'\\'
);
inf_name
=
strrchrW
(
inf_path
,
'\\'
);
if
(
inf_name
)
inf_name
++
;
else
inf_name
=
(
LPWSTR
)
&
InfInformation
->
VersionData
[
0
]
;
else
inf_name
=
inf_path
;
strcpyW
(
OriginalFileInfo
->
OriginalInfName
,
inf_name
);
...
...
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