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
9ed5c865
Commit
9ed5c865
authored
Jun 13, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jun 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Protect custom actions with a structured exception handler.
parent
52581b29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
Makefile.in
dlls/msi/Makefile.in
+1
-1
custom.c
dlls/msi/custom.c
+16
-2
No files found.
dlls/msi/Makefile.in
View file @
9ed5c865
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
msi.dll
IMPORTLIB
=
libmsi.
$(IMPLIBEXT)
IMPORTS
=
urlmon wininet comctl32 shell32 shlwapi cabinet oleaut32 ole32 version user32 gdi32 advapi32 kernel32
IMPORTS
=
urlmon wininet comctl32 shell32 shlwapi cabinet oleaut32 ole32 version user32 gdi32 advapi32 kernel32
ntdll
DELAYIMPORTS
=
odbccp32
EXTRALIBS
=
-luuid
...
...
dlls/msi/custom.c
View file @
9ed5c865
...
...
@@ -25,10 +25,12 @@
#include "winbase.h"
#include "winerror.h"
#include "msidefs.h"
#include "msipriv.h"
#include "winuser.h"
#include "msipriv.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/exception.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
...
@@ -583,7 +585,19 @@ static DWORD WINAPI ACTION_CallDllFunction( const GUID *guid )
{
TRACE
(
"calling %s
\n
"
,
debugstr_w
(
info
->
target
)
);
handle_msi_break
(
info
->
target
);
r
=
fn
(
hPackage
);
__TRY
{
r
=
fn
(
hPackage
);
}
__EXCEPT_PAGE_FAULT
{
ERR
(
"Custom action (%s:%s) caused a page fault: %08x
\n
"
,
debugstr_w
(
info
->
source
),
debugstr_w
(
info
->
target
),
GetExceptionCode
());
r
=
ERROR_SUCCESS
;
}
__ENDTRY
;
MsiCloseHandle
(
hPackage
);
}
else
...
...
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