Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
017d1b0b
Commit
017d1b0b
authored
Mar 30, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Mar 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Forward ExecuteCabA to its Unicode counterpart.
parent
fb5ec209
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
2 deletions
+48
-2
advpack.spec
dlls/advpack/advpack.spec
+1
-1
install.c
dlls/advpack/install.c
+47
-1
No files found.
dlls/advpack/advpack.spec
View file @
017d1b0b
...
...
@@ -14,7 +14,7 @@
@ stdcall -private DllMain(long long ptr)
@ stdcall DoInfInstall(ptr)
@ stdcall ExecuteCabA(ptr ptr ptr)
#
stdcall ExecuteCabW(ptr ptr ptr)
@
stdcall ExecuteCabW(ptr ptr ptr)
@ stdcall ExecuteCab(ptr ptr ptr) ExecuteCabA
@ stdcall ExtractFilesA(str str long ptr ptr long)
# stdcall ExtractFilesW(wstr wstr long ptr ptr long)
...
...
dlls/advpack/install.c
View file @
017d1b0b
...
...
@@ -27,6 +27,7 @@
#include "winreg.h"
#include "winver.h"
#include "winternl.h"
#include "winnls.h"
#include "setupapi.h"
#include "advpub.h"
#include "wine/debug.h"
...
...
@@ -86,6 +87,51 @@ HRESULT WINAPI DoInfInstall(const SETUPCOMMAND_PARAMS *setup)
/***********************************************************************
* ExecuteCabA (ADVPACK.@)
*
* See ExecuteCabW.
*/
HRESULT
WINAPI
ExecuteCabA
(
HWND
hwnd
,
CABINFOA
*
pCab
,
LPVOID
pReserved
)
{
UNICODE_STRING
cab
,
inf
,
section
;
CABINFOW
cabinfo
;
HRESULT
hr
;
TRACE
(
"(%p, %p, %p)
\n
"
,
hwnd
,
pCab
,
pReserved
);
if
(
!
pCab
)
return
E_INVALIDARG
;
if
(
pCab
->
pszCab
)
{
RtlCreateUnicodeStringFromAsciiz
(
&
cab
,
pCab
->
pszCab
);
cabinfo
.
pszCab
=
cab
.
Buffer
;
}
else
cabinfo
.
pszCab
=
NULL
;
RtlCreateUnicodeStringFromAsciiz
(
&
inf
,
pCab
->
pszInf
);
RtlCreateUnicodeStringFromAsciiz
(
&
section
,
pCab
->
pszSection
);
MultiByteToWideChar
(
CP_ACP
,
0
,
pCab
->
szSrcPath
,
-
1
,
cabinfo
.
szSrcPath
,
sizeof
(
cabinfo
.
szSrcPath
)
/
sizeof
(
WCHAR
));
cabinfo
.
pszInf
=
inf
.
Buffer
;
cabinfo
.
pszSection
=
section
.
Buffer
;
cabinfo
.
dwFlags
=
pCab
->
dwFlags
;
hr
=
ExecuteCabW
(
hwnd
,
&
cabinfo
,
pReserved
);
if
(
pCab
->
pszCab
)
RtlFreeUnicodeString
(
&
cab
);
RtlFreeUnicodeString
(
&
inf
);
RtlFreeUnicodeString
(
&
section
);
return
hr
;
}
/***********************************************************************
* ExecuteCabW (ADVPACK.@)
*
* Installs the INF file extracted from a specified cabinet file.
*
...
...
@@ -101,7 +147,7 @@ HRESULT WINAPI DoInfInstall(const SETUPCOMMAND_PARAMS *setup)
* BUGS
* Unimplemented
*/
HRESULT
WINAPI
ExecuteCab
A
(
HWND
hwnd
,
CABINFOA
*
pCab
,
LPVOID
pReserved
)
HRESULT
WINAPI
ExecuteCab
W
(
HWND
hwnd
,
CABINFOW
*
pCab
,
LPVOID
pReserved
)
{
FIXME
(
"(%p %p %p): stub
\n
"
,
hwnd
,
pCab
,
pReserved
);
return
E_FAIL
;
...
...
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