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
10cd651e
Commit
10cd651e
authored
Aug 16, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set up exception handler around WEP call.
parent
a2302fbe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
module.c
loader/ne/module.c
+27
-1
No files found.
loader/ne/module.c
View file @
10cd651e
...
...
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <ctype.h>
#include "winbase.h"
#include "wine/winbase16.h"
#include "wine/library.h"
#include "winerror.h"
...
...
@@ -38,6 +39,8 @@
#include "snoop.h"
#include "builtin16.h"
#include "stackframe.h"
#include "msvcrt/excpt.h"
#include "wine/exception.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
module
);
...
...
@@ -69,6 +72,16 @@ static HMODULE16 NE_GetModuleByFilename( LPCSTR name );
extern
WORD
CALLBACK
NE_CallTo16_word_w
(
FARPROC16
,
WORD
);
/* ### stop build ### */
static
WINE_EXCEPTION_FILTER
(
page_fault
)
{
if
(
GetExceptionCode
()
==
EXCEPTION_ACCESS_VIOLATION
||
GetExceptionCode
()
==
EXCEPTION_PRIV_INSTRUCTION
)
return
EXCEPTION_EXECUTE_HANDLER
;
return
EXCEPTION_CONTINUE_SEARCH
;
}
/***********************************************************************
* NE_GetPtr
*/
...
...
@@ -1240,9 +1253,22 @@ HINSTANCE16 WINAPI LoadLibrary16( LPCSTR libname )
*/
static
BOOL16
MODULE_CallWEP
(
HMODULE16
hModule
)
{
BOOL16
ret
;
FARPROC16
WEP
=
GetProcAddress16
(
hModule
,
"WEP"
);
if
(
!
WEP
)
return
FALSE
;
return
NE_CallTo16_word_w
(
WEP
,
WEP_FREE_DLL
);
__TRY
{
ret
=
NE_CallTo16_word_w
(
WEP
,
WEP_FREE_DLL
);
}
__EXCEPT
(
page_fault
)
{
WARN
(
"Page fault
\n
"
);
ret
=
0
;
}
__ENDTRY
return
ret
;
}
...
...
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