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
9c714c3b
Commit
9c714c3b
authored
May 17, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupDiGetActualSectionToInstallA().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d0f7b4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
10 deletions
+29
-10
devinst.c
dlls/setupapi/devinst.c
+29
-10
No files found.
dlls/setupapi/devinst.c
View file @
9c714c3b
...
...
@@ -1798,18 +1798,37 @@ BOOL WINAPI SetupDiGetDeviceInstanceIdW(HDEVINFO devinfo, SP_DEVINFO_DATA *devic
}
/***********************************************************************
*
SetupDiGetActualSectionToInstallA (SETUPAPI.@)
*
SetupDiGetActualSectionToInstallA (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiGetActualSectionToInstallA
(
HINF
InfHandle
,
PCSTR
InfSectionName
,
PSTR
InfSectionWithExt
,
DWORD
InfSectionWithExtSize
,
PDWORD
RequiredSize
,
PSTR
*
Extension
)
BOOL
WINAPI
SetupDiGetActualSectionToInstallA
(
HINF
hinf
,
const
char
*
section
,
char
*
section_ext
,
DWORD
size
,
DWORD
*
needed
,
char
**
extptr
)
{
FIXME
(
"
\n
"
);
return
FALSE
;
WCHAR
sectionW
[
LINE_LEN
],
section_extW
[
LINE_LEN
],
*
extptrW
;
BOOL
ret
;
MultiByteToWideChar
(
CP_ACP
,
0
,
section
,
-
1
,
sectionW
,
ARRAY_SIZE
(
sectionW
));
ret
=
SetupDiGetActualSectionToInstallW
(
hinf
,
sectionW
,
section_extW
,
ARRAY_SIZE
(
section_extW
),
NULL
,
&
extptrW
);
if
(
ret
)
{
if
(
needed
)
*
needed
=
WideCharToMultiByte
(
CP_ACP
,
0
,
section_extW
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
section_ext
)
ret
=
!!
WideCharToMultiByte
(
CP_ACP
,
0
,
section_extW
,
-
1
,
section_ext
,
size
,
NULL
,
NULL
);
if
(
extptr
)
{
if
(
extptrW
)
*
extptr
=
section_ext
+
WideCharToMultiByte
(
CP_ACP
,
0
,
section_extW
,
extptrW
-
section_extW
,
NULL
,
0
,
NULL
,
NULL
);
else
*
extptr
=
NULL
;
}
}
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