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
9fab263d
Commit
9fab263d
authored
Feb 03, 2010
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Call Custom function via wrapper.
parent
b9da31f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
custom.c
dlls/msi/custom.c
+23
-1
No files found.
dlls/msi/custom.c
View file @
9fab263d
...
...
@@ -647,6 +647,28 @@ static UINT get_action_info( const GUID *guid, INT *type, MSIHANDLE *handle,
return
ERROR_SUCCESS
;
}
#ifdef __i386__
extern
UINT
CUSTOMPROC_wrapper
(
MsiCustomActionEntryPoint
proc
,
MSIHANDLE
handle
);
__ASM_GLOBAL_FUNC
(
CUSTOMPROC_wrapper
,
"pushl %ebp
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
__ASM_CFI
(
".cfi_rel_offset %ebp,0
\n\t
"
)
"movl %esp,%ebp
\n\t
"
__ASM_CFI
(
".cfi_def_cfa_register %ebp
\n\t
"
)
"pushl 12(%ebp)
\n\t
"
"movl 8(%ebp),%eax
\n\t
"
"call *%eax
\n\t
"
"leave
\n\t
"
__ASM_CFI
(
".cfi_def_cfa %esp,4
\n\t
"
)
__ASM_CFI
(
".cfi_same_value %ebp
\n\t
"
)
"ret"
)
#else
static
inline
UINT
CUSTOMPROC_wrapper
(
MsiCustomActionEntryPoint
proc
,
MSIHANDLE
handle
)
{
return
proc
(
handle
);
}
#endif
static
DWORD
ACTION_CallDllFunction
(
const
GUID
*
guid
)
{
MsiCustomActionEntryPoint
fn
;
...
...
@@ -685,7 +707,7 @@ static DWORD ACTION_CallDllFunction( const GUID *guid )
__TRY
{
r
=
fn
(
hPackage
);
r
=
CUSTOMPROC_wrapper
(
fn
,
hPackage
);
}
__EXCEPT_PAGE_FAULT
{
...
...
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