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
eb4c4b35
Commit
eb4c4b35
authored
Feb 21, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcomp/tests: Link to activation context API directly.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bf39f2bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
vcomp.c
dlls/vcomp/tests/vcomp.c
+5
-18
No files found.
dlls/vcomp/tests/vcomp.c
View file @
eb4c4b35
...
...
@@ -27,11 +27,6 @@ static HANDLE vcomp_actctx_hctx;
static
ULONG_PTR
vcomp_actctx_cookie
;
static
HMODULE
vcomp_handle
;
static
HANDLE
(
WINAPI
*
pCreateActCtxA
)(
ACTCTXA
*
);
static
BOOL
(
WINAPI
*
pActivateActCtx
)(
HANDLE
,
ULONG_PTR
*
);
static
BOOL
(
WINAPI
*
pDeactivateActCtx
)(
DWORD
,
ULONG_PTR
);
static
VOID
(
WINAPI
*
pReleaseActCtx
)(
HANDLE
);
typedef
CRITICAL_SECTION
*
omp_lock_t
;
typedef
CRITICAL_SECTION
*
omp_nest_lock_t
;
...
...
@@ -191,18 +186,10 @@ static const char vcomp_manifest[] =
static
void
create_vcomp_manifest
(
void
)
{
char
temp_path
[
MAX_PATH
];
HMODULE
kernel32
;
DWORD
written
;
ACTCTXA
ctx
;
HANDLE
file
;
kernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pCreateActCtxA
=
(
void
*
)
GetProcAddress
(
kernel32
,
"CreateActCtxA"
);
pActivateActCtx
=
(
void
*
)
GetProcAddress
(
kernel32
,
"ActivateActCtx"
);
pDeactivateActCtx
=
(
void
*
)
GetProcAddress
(
kernel32
,
"DeactivateActCtx"
);
pReleaseActCtx
=
(
void
*
)
GetProcAddress
(
kernel32
,
"ReleaseActCtx"
);
if
(
!
pCreateActCtxA
)
return
;
if
(
!
GetTempPathA
(
sizeof
(
temp_path
),
temp_path
)
||
!
GetTempFileNameA
(
temp_path
,
"vcomp"
,
0
,
vcomp_manifest_file
))
{
...
...
@@ -231,7 +218,7 @@ static void create_vcomp_manifest(void)
memset
(
&
ctx
,
0
,
sizeof
(
ctx
));
ctx
.
cbSize
=
sizeof
(
ctx
);
ctx
.
lpSource
=
vcomp_manifest_file
;
vcomp_actctx_hctx
=
p
CreateActCtxA
(
&
ctx
);
vcomp_actctx_hctx
=
CreateActCtxA
(
&
ctx
);
if
(
!
vcomp_actctx_hctx
)
{
ok
(
0
,
"failed to create activation context
\n
"
);
...
...
@@ -239,10 +226,10 @@ static void create_vcomp_manifest(void)
return
;
}
if
(
!
p
ActivateActCtx
(
vcomp_actctx_hctx
,
&
vcomp_actctx_cookie
))
if
(
!
ActivateActCtx
(
vcomp_actctx_hctx
,
&
vcomp_actctx_cookie
))
{
win_skip
(
"failed to activate context
\n
"
);
p
ReleaseActCtx
(
vcomp_actctx_hctx
);
ReleaseActCtx
(
vcomp_actctx_hctx
);
DeleteFileA
(
vcomp_manifest_file
);
vcomp_actctx_hctx
=
NULL
;
}
...
...
@@ -255,8 +242,8 @@ static void release_vcomp(void)
if
(
vcomp_actctx_hctx
)
{
p
DeactivateActCtx
(
0
,
vcomp_actctx_cookie
);
p
ReleaseActCtx
(
vcomp_actctx_hctx
);
DeactivateActCtx
(
0
,
vcomp_actctx_cookie
);
ReleaseActCtx
(
vcomp_actctx_hctx
);
DeleteFileA
(
vcomp_manifest_file
);
}
}
...
...
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