Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
22c5fbdc
Commit
22c5fbdc
authored
Sep 13, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Don't crash on Win95.
parent
d81aff24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
typelib.c
dlls/oleaut32/tests/typelib.c
+5
-5
No files found.
dlls/oleaut32/tests/typelib.c
View file @
22c5fbdc
...
...
@@ -37,10 +37,10 @@
#define expect_hex(expr, value) expect_eq(expr, (int)value, int, "0x%x")
#define expect_null(expr) expect_eq(expr, NULL, const void *, "%p")
#define expect_wstr_
utf8
val(expr, value) \
#define expect_wstr_
acp
val(expr, value) \
{ \
CHAR buf[260]; \
expect_eq(!WideCharToMultiByte(CP_
UTF8
, 0, (expr), -1, buf, 260, NULL, NULL), 0, int, "%d"); \
expect_eq(!WideCharToMultiByte(CP_
ACP
, 0, (expr), -1, buf, 260, NULL, NULL), 0, int, "%d"); \
ok(lstrcmp(value, buf) == 0, #expr " expected \"%s\" got \"%s\"\n", value, buf); \
}
...
...
@@ -1279,7 +1279,7 @@ static void test_dump_typelib(const char *name)
int
ifcount
=
sizeof
(
info
)
/
sizeof
(
info
[
0
]);
int
iface
,
func
;
MultiByteToWideChar
(
CP_
UTF8
,
0
,
name
,
-
1
,
wszName
,
MAX_PATH
);
MultiByteToWideChar
(
CP_
ACP
,
0
,
name
,
-
1
,
wszName
,
MAX_PATH
);
ole_check
(
LoadTypeLibEx
(
wszName
,
REGKIND_NONE
,
&
typelib
));
expect_eq
(
ITypeLib_GetTypeInfoCount
(
typelib
),
ifcount
,
UINT
,
"%d"
);
for
(
iface
=
0
;
iface
<
ifcount
;
iface
++
)
...
...
@@ -1292,7 +1292,7 @@ static void test_dump_typelib(const char *name)
trace
(
"Interface %s
\n
"
,
if_info
->
name
);
ole_check
(
ITypeLib_GetTypeInfo
(
typelib
,
iface
,
&
typeinfo
));
ole_check
(
ITypeLib_GetDocumentation
(
typelib
,
iface
,
&
bstrIfName
,
NULL
,
NULL
,
NULL
));
expect_wstr_
utf8
val
(
bstrIfName
,
if_info
->
name
);
expect_wstr_
acp
val
(
bstrIfName
,
if_info
->
name
);
SysFreeString
(
bstrIfName
);
ole_check
(
ITypeInfo_GetTypeAttr
(
typeinfo
,
&
typeattr
));
...
...
@@ -1325,7 +1325,7 @@ static void test_dump_typelib(const char *name)
ole_check
(
ITypeInfo_GetNames
(
typeinfo
,
desc
->
memid
,
namesTab
,
256
,
&
cNames
));
for
(
i
=
0
;
i
<
cNames
;
i
++
)
{
expect_wstr_
utf8
val
(
namesTab
[
i
],
fn_info
->
names
[
i
]);
expect_wstr_
acp
val
(
namesTab
[
i
],
fn_info
->
names
[
i
]);
SysFreeString
(
namesTab
[
i
]);
}
expect_null
(
fn_info
->
names
[
cNames
]);
...
...
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