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
19271d7a
Commit
19271d7a
authored
Mar 17, 2004
by
Jon Griffiths
Committed by
Alexandre Julliard
Mar 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use function ptrs for call only present in later versions.
Fix tests that fail with old versions.
parent
0601f637
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
33 deletions
+76
-33
olefont.c
dlls/oleaut32/tests/olefont.c
+9
-1
safearray.c
dlls/oleaut32/tests/safearray.c
+67
-32
No files found.
dlls/oleaut32/tests/olefont.c
View file @
19271d7a
...
...
@@ -38,6 +38,9 @@
#include <wtypes.h>
#include <olectl.h>
static
HMODULE
hOleaut32
;
static
HRESULT
(
WINAPI
*
pOleCreateFontIndirect
)(
LPFONTDESC
,
REFIID
,
LPVOID
*
);
START_TEST
(
olefont
)
{
...
...
@@ -45,7 +48,12 @@ START_TEST(olefont)
HRESULT
hres
;
IFont
*
font
=
NULL
;
hres
=
OleCreateFontIndirect
(
NULL
,
&
IID_IFont
,
&
pvObj
);
hOleaut32
=
LoadLibraryA
(
"oleaut32.dll"
);
pOleCreateFontIndirect
=
(
void
*
)
GetProcAddress
(
hOleaut32
,
"OleCreateFontIndirect"
);
if
(
!
pOleCreateFontIndirect
)
return
;
hres
=
pOleCreateFontIndirect
(
NULL
,
&
IID_IFont
,
&
pvObj
);
font
=
pvObj
;
ok
(
hres
==
S_OK
,
"OCFI (NULL,..) does not return 0, but 0x%08lx
\n
"
,
hres
);
...
...
dlls/oleaut32/tests/safearray.c
View file @
19271d7a
This diff is collapsed.
Click to expand it.
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