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
198a00bc
Commit
198a00bc
authored
Feb 25, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add an exception handler around check_actctx to catch bad handles.
parent
dba8ad57
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
actctx.c
dlls/ntdll/actctx.c
+9
-6
No files found.
dlls/ntdll/actctx.c
View file @
198a00bc
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
#define WIN32_NO_STATUS
#define WIN32_NO_STATUS
#include "winternl.h"
#include "winternl.h"
#include "ntdll_misc.h"
#include "ntdll_misc.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/unicode.h"
...
@@ -568,16 +569,18 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
...
@@ -568,16 +569,18 @@ static WCHAR *build_assembly_id( const struct assembly_identity *ai )
static
ACTIVATION_CONTEXT
*
check_actctx
(
HANDLE
h
)
static
ACTIVATION_CONTEXT
*
check_actctx
(
HANDLE
h
)
{
{
ACTIVATION_CONTEXT
*
actctx
=
h
;
ACTIVATION_CONTEXT
*
ret
=
NULL
,
*
actctx
=
h
;
if
(
!
h
||
h
==
INVALID_HANDLE_VALUE
)
return
NULL
;
if
(
!
h
||
h
==
INVALID_HANDLE_VALUE
)
return
NULL
;
switch
(
actctx
->
magic
)
__TRY
{
{
case
ACTCTX_MAGIC
:
if
(
actctx
->
magic
==
ACTCTX_MAGIC
)
ret
=
actctx
;
return
actctx
;
default:
return
NULL
;
}
}
__EXCEPT_PAGE_FAULT
{
}
__ENDTRY
return
ret
;
}
}
static
inline
void
actctx_addref
(
ACTIVATION_CONTEXT
*
actctx
)
static
inline
void
actctx_addref
(
ACTIVATION_CONTEXT
*
actctx
)
...
...
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