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
bf39f2bf
Commit
bf39f2bf
authored
Feb 21, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Link to activation context API directly.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a6d048f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
typelib.c
dlls/oleaut32/tests/typelib.c
+4
-18
No files found.
dlls/oleaut32/tests/typelib.c
View file @
bf39f2bf
...
...
@@ -89,10 +89,6 @@ static void _expect_ref(IUnknown* obj, ULONG ref, int line)
static
HRESULT
(
WINAPI
*
pRegisterTypeLibForUser
)(
ITypeLib
*
,
OLECHAR
*
,
OLECHAR
*
);
static
HRESULT
(
WINAPI
*
pUnRegisterTypeLibForUser
)(
REFGUID
,
WORD
,
WORD
,
LCID
,
SYSKIND
);
static
BOOL
(
WINAPI
*
pActivateActCtx
)(
HANDLE
,
ULONG_PTR
*
);
static
HANDLE
(
WINAPI
*
pCreateActCtxW
)(
PCACTCTXW
);
static
BOOL
(
WINAPI
*
pDeactivateActCtx
)(
DWORD
,
ULONG_PTR
);
static
VOID
(
WINAPI
*
pReleaseActCtx
)(
HANDLE
);
static
BOOL
(
WINAPI
*
pIsWow64Process
)(
HANDLE
,
LPBOOL
);
static
LONG
(
WINAPI
*
pRegDeleteKeyExW
)(
HKEY
,
LPCWSTR
,
REGSAM
,
DWORD
);
...
...
@@ -296,10 +292,6 @@ static void init_function_pointers(void)
pRegisterTypeLibForUser
=
(
void
*
)
GetProcAddress
(
hmod
,
"RegisterTypeLibForUser"
);
pUnRegisterTypeLibForUser
=
(
void
*
)
GetProcAddress
(
hmod
,
"UnRegisterTypeLibForUser"
);
pActivateActCtx
=
(
void
*
)
GetProcAddress
(
hk32
,
"ActivateActCtx"
);
pCreateActCtxW
=
(
void
*
)
GetProcAddress
(
hk32
,
"CreateActCtxW"
);
pDeactivateActCtx
=
(
void
*
)
GetProcAddress
(
hk32
,
"DeactivateActCtx"
);
pReleaseActCtx
=
(
void
*
)
GetProcAddress
(
hk32
,
"ReleaseActCtx"
);
pIsWow64Process
=
(
void
*
)
GetProcAddress
(
hk32
,
"IsWow64Process"
);
pRegDeleteKeyExW
=
(
void
*
)
GetProcAddress
(
hadv
,
"RegDeleteKeyExW"
);
}
...
...
@@ -5744,7 +5736,7 @@ static HANDLE create_actctx(const char *file)
actctx
.
cbSize
=
sizeof
(
ACTCTXW
);
actctx
.
lpSource
=
path
;
handle
=
p
CreateActCtxW
(
&
actctx
);
handle
=
CreateActCtxW
(
&
actctx
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"handle == INVALID_HANDLE_VALUE, error %u
\n
"
,
GetLastError
());
ok
(
actctx
.
cbSize
==
sizeof
(
actctx
),
"actctx.cbSize=%d
\n
"
,
actctx
.
cbSize
);
...
...
@@ -5798,12 +5790,6 @@ static void test_LoadRegTypeLib(void)
BSTR
path
;
BOOL
ret
;
if
(
!
pActivateActCtx
)
{
win_skip
(
"Activation contexts not supported, skipping LoadRegTypeLib tests
\n
"
);
return
;
}
create_manifest_file
(
"testdep.manifest"
,
manifest_dep
);
create_manifest_file
(
"main.manifest"
,
manifest_main
);
...
...
@@ -5824,7 +5810,7 @@ static void test_LoadRegTypeLib(void)
hr
=
QueryPathOfRegTypeLib
(
&
LIBID_TestTypelib
,
2
,
0
,
LOCALE_NEUTRAL
,
&
path
);
ok
(
hr
==
TYPE_E_LIBNOTREGISTERED
,
"got 0x%08x
\n
"
,
hr
);
ret
=
p
ActivateActCtx
(
handle
,
&
cookie
);
ret
=
ActivateActCtx
(
handle
,
&
cookie
);
ok
(
ret
,
"ActivateActCtx failed: %u
\n
"
,
GetLastError
());
path
=
NULL
;
...
...
@@ -5926,10 +5912,10 @@ static void test_LoadRegTypeLib(void)
DeleteFileA
(
"test_actctx_tlb.tlb"
);
DeleteFileA
(
"test_actctx_tlb2.tlb"
);
ret
=
p
DeactivateActCtx
(
0
,
cookie
);
ret
=
DeactivateActCtx
(
0
,
cookie
);
ok
(
ret
,
"DeactivateActCtx failed: %u
\n
"
,
GetLastError
());
p
ReleaseActCtx
(
handle
);
ReleaseActCtx
(
handle
);
}
#define AUX_HREF 1
...
...
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