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
924d91ca
Commit
924d91ca
authored
Apr 20, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Implement LaunchINFSectionW.
parent
c14fe5a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
5 deletions
+40
-5
install.c
dlls/advpack/install.c
+40
-5
No files found.
dlls/advpack/install.c
View file @
924d91ca
...
...
@@ -516,14 +516,49 @@ INT WINAPI LaunchINFSectionA(HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show
* 'A' Always reboot.
* 'I' Reboot if needed (default).
* 'N' No reboot.
*
* BUGS
* Unimplemented.
*/
INT
WINAPI
LaunchINFSectionW
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPWSTR
cmdline
,
INT
show
)
{
FIXME
(
"(%p, %p, %s, %i): stub
\n
"
,
hWnd
,
hInst
,
debugstr_w
(
cmdline
),
show
);
return
0
;
ADVInfo
info
;
LPWSTR
cmdline_copy
,
cmdline_ptr
;
LPWSTR
inf_filename
,
install_sec
;
LPWSTR
str_flags
;
DWORD
flags
=
0
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p, %p, %s, %d)
\n
"
,
hWnd
,
hInst
,
debugstr_w
(
cmdline
),
show
);
if
(
!
cmdline
)
return
E_INVALIDARG
;
cmdline_copy
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
cmdline
)
+
1
)
*
sizeof
(
WCHAR
));
cmdline_ptr
=
cmdline_copy
;
lstrcpyW
(
cmdline_copy
,
cmdline
);
inf_filename
=
get_parameter
(
&
cmdline_ptr
,
','
);
install_sec
=
get_parameter
(
&
cmdline_ptr
,
','
);
str_flags
=
get_parameter
(
&
cmdline_ptr
,
','
);
if
(
str_flags
)
flags
=
atolW
(
str_flags
);
ZeroMemory
(
&
info
,
sizeof
(
ADVInfo
));
hr
=
install_init
(
inf_filename
,
install_sec
,
NULL
,
flags
,
&
info
);
if
(
hr
!=
S_OK
)
goto
done
;
hr
=
spapi_install
(
&
info
);
if
(
hr
!=
S_OK
)
goto
done
;
hr
=
adv_install
(
&
info
);
done:
install_release
(
&
info
);
HeapFree
(
GetProcessHeap
(),
0
,
cmdline_copy
);
return
hr
;
}
/***********************************************************************
...
...
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