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
01c591de
Commit
01c591de
authored
Jun 26, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Jun 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Don't use autoheader styled defines in varformat.
parent
b1804fd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
varformat.c
dlls/oleaut32/tests/varformat.c
+7
-8
No files found.
dlls/oleaut32/tests/varformat.c
View file @
01c591de
...
...
@@ -44,11 +44,8 @@ static HRESULT (WINAPI *pVarFormatNumber)(LPVARIANT,int,int,int,int,ULONG,BSTR*)
static
HRESULT
(
WINAPI
*
pVarFormat
)(
LPVARIANT
,
LPOLESTR
,
int
,
int
,
ULONG
,
BSTR
*
);
static
HRESULT
(
WINAPI
*
pVarWeekdayName
)(
int
,
int
,
int
,
ULONG
,
BSTR
*
);
/* Have I8/UI8 data type? */
#define HAVE_OLEAUT32_I8 HAVE_FUNC(VarI8FromI1)
/* Is a given function exported from oleaut32? */
#define HAVE_FUNC(func) ((void*)GetProcAddress(hOleaut32, #func) != NULL)
/* Has I8/UI8 data type? */
static
BOOL
has_i8
;
/* Get a conversion function ptr, return if function not available */
#define CHECKPTR(func) p##func = (void*)GetProcAddress(hOleaut32, #func); \
...
...
@@ -96,7 +93,7 @@ static void test_VarFormatNumber(void)
FMT_NUMBER
(
VT_UI2
,
V_UI2
);
FMT_NUMBER
(
VT_I4
,
V_I4
);
FMT_NUMBER
(
VT_UI4
,
V_UI4
);
if
(
HAVE_OLEAUT32_I
8
)
if
(
has_i
8
)
{
FMT_NUMBER
(
VT_I8
,
V_I8
);
FMT_NUMBER
(
VT_UI8
,
V_UI8
);
...
...
@@ -278,7 +275,7 @@ static void test_VarFormat(void)
VNUMFMT
(
VT_I1
,
V_I1
);
VNUMFMT
(
VT_I2
,
V_I2
);
VNUMFMT
(
VT_I4
,
V_I4
);
if
(
HAVE_OLEAUT32_I
8
)
if
(
has_i
8
)
{
VNUMFMT
(
VT_I8
,
V_I8
);
}
...
...
@@ -286,7 +283,7 @@ static void test_VarFormat(void)
VNUMFMT
(
VT_UI1
,
V_UI1
);
VNUMFMT
(
VT_UI2
,
V_UI2
);
VNUMFMT
(
VT_UI4
,
V_UI4
);
if
(
HAVE_OLEAUT32_I
8
)
if
(
has_i
8
)
{
VNUMFMT
(
VT_UI8
,
V_UI8
);
}
...
...
@@ -565,6 +562,8 @@ START_TEST(varformat)
{
hOleaut32
=
GetModuleHandleA
(
"oleaut32.dll"
);
has_i8
=
GetProcAddress
(
hOleaut32
,
"VarI8FromI1"
)
!=
NULL
;
test_VarFormatNumber
();
test_VarFormat
();
test_VarWeekdayName
();
...
...
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