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
4f128fa8
Commit
4f128fa8
authored
Nov 03, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for optional section.ntx86 and section.nt in
InstallHinfSection when current version is set to NT.
parent
fe401520
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
install.c
dlls/setupapi/install.c
+27
-2
No files found.
dlls/setupapi/install.c
View file @
4f128fa8
...
@@ -906,14 +906,23 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
...
@@ -906,14 +906,23 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
*/
*/
void
WINAPI
InstallHinfSectionW
(
HWND
hwnd
,
HINSTANCE
handle
,
LPCWSTR
cmdline
,
INT
show
)
void
WINAPI
InstallHinfSectionW
(
HWND
hwnd
,
HINSTANCE
handle
,
LPCWSTR
cmdline
,
INT
show
)
{
{
WCHAR
*
p
,
*
path
,
section
[
MAX_PATH
];
#ifdef __i386__
static
const
WCHAR
nt_platformW
[]
=
{
'.'
,
'n'
,
't'
,
'x'
,
'8'
,
'6'
,
0
};
#elif defined(__x86_64)
static
const
WCHAR
nt_platformW
[]
=
{
'.'
,
'n'
,
't'
,
'i'
,
'a'
,
'6'
,
'4'
,
0
};
#else
/* FIXME: other platforms */
static
const
WCHAR
nt_platformW
[]
=
{
'.'
,
'n'
,
't'
,
0
};
#endif
static
const
WCHAR
nt_genericW
[]
=
{
'.'
,
'n'
,
't'
,
0
};
WCHAR
*
p
,
*
path
,
section
[
MAX_PATH
+
sizeof
(
nt_platformW
)
/
sizeof
(
WCHAR
)];
void
*
callback_context
;
void
*
callback_context
;
UINT
mode
;
UINT
mode
;
HINF
hinf
;
HINF
hinf
;
TRACE
(
"hwnd %p, handle %p, cmdline %s
\n
"
,
hwnd
,
handle
,
debugstr_w
(
cmdline
));
TRACE
(
"hwnd %p, handle %p, cmdline %s
\n
"
,
hwnd
,
handle
,
debugstr_w
(
cmdline
));
lstrcpynW
(
section
,
cmdline
,
sizeof
(
section
)
/
sizeof
(
WCHAR
)
);
lstrcpynW
(
section
,
cmdline
,
MAX_PATH
);
if
(
!
(
p
=
strchrW
(
section
,
' '
)))
return
;
if
(
!
(
p
=
strchrW
(
section
,
' '
)))
return
;
*
p
++
=
0
;
*
p
++
=
0
;
...
@@ -927,6 +936,22 @@ void WINAPI InstallHinfSectionW( HWND hwnd, HINSTANCE handle, LPCWSTR cmdline, I
...
@@ -927,6 +936,22 @@ void WINAPI InstallHinfSectionW( HWND hwnd, HINSTANCE handle, LPCWSTR cmdline, I
hinf
=
SetupOpenInfFileW
(
path
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
hinf
=
SetupOpenInfFileW
(
path
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
if
(
hinf
==
INVALID_HANDLE_VALUE
)
return
;
if
(
hinf
==
INVALID_HANDLE_VALUE
)
return
;
if
(
!
(
GetVersion
()
&
0x80000000
))
{
INFCONTEXT
context
;
/* check for <section>.ntx86 (or corresponding name for the current platform)
* and then <section>.nt */
p
=
section
+
strlenW
(
section
);
memcpy
(
p
,
nt_platformW
,
sizeof
(
nt_platformW
)
);
if
(
!
(
SetupFindFirstLineW
(
hinf
,
section
,
NULL
,
&
context
)))
{
memcpy
(
p
,
nt_genericW
,
sizeof
(
nt_genericW
)
);
if
(
!
(
SetupFindFirstLineW
(
hinf
,
section
,
NULL
,
&
context
)))
*
p
=
0
;
}
if
(
*
p
)
TRACE
(
"using section %s instead
\n
"
,
debugstr_w
(
section
)
);
}
callback_context
=
SetupInitDefaultQueueCallback
(
hwnd
);
callback_context
=
SetupInitDefaultQueueCallback
(
hwnd
);
SetupInstallFromInfSectionW
(
hwnd
,
hinf
,
section
,
SPINST_ALL
,
NULL
,
NULL
,
SP_COPY_NEWER
,
SetupInstallFromInfSectionW
(
hwnd
,
hinf
,
section
,
SPINST_ALL
,
NULL
,
NULL
,
SP_COPY_NEWER
,
SetupDefaultQueueCallbackW
,
callback_context
,
SetupDefaultQueueCallbackW
,
callback_context
,
...
...
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