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
611ad497
Commit
611ad497
authored
Oct 24, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Oct 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Fix typelib tests compilation with __WINESRC__ defined.
parent
54b883ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
typelib.c
dlls/oleaut32/tests/typelib.c
+7
-7
No files found.
dlls/oleaut32/tests/typelib.c
View file @
611ad497
...
...
@@ -44,7 +44,7 @@
{ \
CHAR buf[260]; \
expect_eq(!WideCharToMultiByte(CP_ACP, 0, (expr), -1, buf, 260, NULL, NULL), 0, int, "%d"); \
ok(
l
strcmp(value, buf) == 0, #expr " expected \"%s\" got \"%s\"\n", value, buf); \
ok(strcmp(value, buf) == 0, #expr " expected \"%s\" got \"%s\"\n", value, buf); \
}
#define ole_expect(expr, expect) { \
...
...
@@ -628,14 +628,14 @@ static void write_typelib(int res_no, const char *filename)
HRSRC
res
;
void
*
ptr
;
file
=
CreateFile
(
filename
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
file
=
CreateFile
A
(
filename
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
0
,
0
);
ok
(
file
!=
INVALID_HANDLE_VALUE
,
"file creation failed
\n
"
);
if
(
file
==
INVALID_HANDLE_VALUE
)
return
;
res
=
FindResource
(
GetModuleHandle
(
0
),
MAKEINTRESOURCE
(
res_no
),
"TYPELIB"
);
res
=
FindResource
A
(
GetModuleHandleA
(
NULL
),
(
LPCSTR
)
MAKEINTRESOURCE
(
res_no
),
"TYPELIB"
);
ok
(
res
!=
0
,
"couldn't find resource
\n
"
);
ptr
=
LockResource
(
LoadResource
(
GetModuleHandle
(
0
),
res
));
WriteFile
(
file
,
ptr
,
SizeofResource
(
GetModuleHandle
(
0
),
res
),
&
written
,
NULL
);
ok
(
written
==
SizeofResource
(
GetModuleHandle
(
0
),
res
),
"couldn't write resource
\n
"
);
ptr
=
LockResource
(
LoadResource
(
GetModuleHandle
A
(
NULL
),
res
));
WriteFile
(
file
,
ptr
,
SizeofResource
(
GetModuleHandle
A
(
NULL
),
res
),
&
written
,
NULL
);
ok
(
written
==
SizeofResource
(
GetModuleHandle
A
(
NULL
),
res
),
"couldn't write resource
\n
"
);
CloseHandle
(
file
);
}
...
...
@@ -5221,7 +5221,7 @@ START_TEST(typelib)
if
((
filename
=
create_test_typelib
(
2
)))
{
test_dump_typelib
(
filename
);
DeleteFile
(
filename
);
DeleteFile
A
(
filename
);
}
test_register_typelib
(
TRUE
);
...
...
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