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
a1e28f70
Commit
a1e28f70
authored
Aug 23, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Some tests for QueryPathOfRegTypeLib() with activated context.
parent
a157c7bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
typelib.c
dlls/oleaut32/tests/typelib.c
+28
-1
No files found.
dlls/oleaut32/tests/typelib.c
View file @
a1e28f70
...
...
@@ -1234,7 +1234,7 @@ static void test_QueryPathOfRegTypeLib(DWORD arch)
for
(
i
=
0
;
i
<
sizeof
(
td
)
/
sizeof
(
td
[
0
]);
i
++
)
{
ret
=
QueryPathOfRegTypeLib
(
&
uid
,
td
[
i
].
maj
,
td
[
i
].
min
,
0
,
&
path
);
ret
=
QueryPathOfRegTypeLib
(
&
uid
,
td
[
i
].
maj
,
td
[
i
].
min
,
LOCALE_NEUTRAL
,
&
path
);
ok
(
ret
==
td
[
i
].
ret
,
"QueryPathOfRegTypeLib(%u.%u) returned %08x
\n
"
,
td
[
i
].
maj
,
td
[
i
].
min
,
ret
);
if
(
ret
==
S_OK
)
{
...
...
@@ -4470,6 +4470,7 @@ static void test_LoadRegTypeLib(void)
HANDLE
handle
;
ITypeLib
*
tl
;
HRESULT
hr
;
BSTR
path
;
BOOL
ret
;
if
(
!
pActivateActCtx
)
...
...
@@ -4495,9 +4496,35 @@ static void test_LoadRegTypeLib(void)
hr
=
LoadRegTypeLib
(
&
LIBID_register_test
,
1
,
0
,
LOCALE_NEUTRAL
,
&
tl
);
ok
(
hr
==
TYPE_E_LIBNOTREGISTERED
,
"got 0x%08x
\n
"
,
hr
);
hr
=
QueryPathOfRegTypeLib
(
&
LIBID_TestTypelib
,
2
,
0
,
LOCALE_NEUTRAL
,
&
path
);
ok
(
hr
==
TYPE_E_LIBNOTREGISTERED
,
"got 0x%08x
\n
"
,
hr
);
ret
=
pActivateActCtx
(
handle
,
&
cookie
);
ok
(
ret
,
"ActivateActCtx failed: %u
\n
"
,
GetLastError
());
path
=
NULL
;
hr
=
QueryPathOfRegTypeLib
(
&
LIBID_TestTypelib
,
2
,
0
,
LOCALE_NEUTRAL
,
&
path
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
SysFreeString
(
path
);
path
=
NULL
;
hr
=
QueryPathOfRegTypeLib
(
&
LIBID_TestTypelib
,
2
,
0
,
lcid_en
,
&
path
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
SysFreeString
(
path
);
path
=
NULL
;
hr
=
QueryPathOfRegTypeLib
(
&
LIBID_TestTypelib
,
2
,
0
,
lcid_ru
,
&
path
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
SysFreeString
(
path
);
path
=
NULL
;
hr
=
QueryPathOfRegTypeLib
(
&
LIBID_TestTypelib
,
1
,
0
,
LOCALE_NEUTRAL
,
&
path
);
ok
(
hr
==
TYPE_E_LIBNOTREGISTERED
||
broken
(
hr
==
S_OK
)
/* winxp */
,
"got 0x%08x
\n
"
,
hr
);
SysFreeString
(
path
);
/* manifest version is 2.0, actual is 1.0 */
hr
=
LoadRegTypeLib
(
&
LIBID_register_test
,
1
,
0
,
LOCALE_NEUTRAL
,
&
tl
);
ok
(
hr
==
TYPE_E_LIBNOTREGISTERED
||
broken
(
hr
==
S_OK
)
/* winxp */
,
"got 0x%08x
\n
"
,
hr
);
...
...
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