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
7ff344e2
Commit
7ff344e2
authored
Mar 18, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed vartype test.
parent
758a6951
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
vartype.c
dlls/oleaut32/tests/vartype.c
+12
-8
No files found.
dlls/oleaut32/tests/vartype.c
View file @
7ff344e2
...
...
@@ -3418,16 +3418,12 @@ static const char* wtoascii(LPWSTR lpszIn)
return
buff
;
}
#define DATE_STR(flags, str) hres = VariantChangeTypeEx(&vDst, &vSrc, lcid, flags, VT_BSTR); \
ok(hres == S_OK && V_VT(&vDst) == VT_BSTR && \
V_BSTR(&vDst) && !strcmpW(V_BSTR(&vDst), str), \
"hres=0x%lX, type=%d (should be VT_BSTR), *bstr=%s\n", \
hres, V_VT(&vDst), V_BSTR(&vDst) ? wtoascii(V_BSTR(&vDst)) : "?")
static
void
test_VarDateChangeTypeEx
(
void
)
{
static
const
WCHAR
sz25570
[]
=
{
'1'
,
'/'
,
'2'
,
'/'
,
'1'
,
'9'
,
'7'
,
'0'
,
'\0'
};
static
const
WCHAR
sz25570_2
[]
=
{
'1'
,
'/'
,
'2'
,
'/'
,
'7'
,
'0'
,
'\0'
};
static
const
WCHAR
sz25570Nls
[]
=
{
'1'
,
'/'
,
'2'
,
'/'
,
'1'
,
'9'
,
'7'
,
'0'
,
' '
,
'1'
,
'2'
,
':'
,
'0'
,
'0'
,
':'
,
'0'
,
'0'
,
' '
,
'A'
,
'M'
,
'\0'
};
CONVVARS
(
CONV_TYPE
);
...
...
@@ -3445,12 +3441,20 @@ static void test_VarDateChangeTypeEx(void)
V_VT
(
&
vSrc
)
=
VT_DATE
;
V_DATE
(
&
vSrc
)
=
25570
.
0
;
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
DATE_STR
(
VARIANT_NOUSEROVERRIDE
,
sz25570
);
hres
=
VariantChangeTypeEx
(
&
vDst
,
&
vSrc
,
lcid
,
VARIANT_NOUSEROVERRIDE
,
VT_BSTR
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
vDst
)
==
VT_BSTR
&&
V_BSTR
(
&
vDst
)
&&
(
!
strcmpW
(
V_BSTR
(
&
vDst
),
sz25570
)
||
!
strcmpW
(
V_BSTR
(
&
vDst
),
sz25570_2
)),
"hres=0x%lX, type=%d (should be VT_BSTR), *bstr=%s
\n
"
,
hres
,
V_VT
(
&
vDst
),
V_BSTR
(
&
vDst
)
?
wtoascii
(
V_BSTR
(
&
vDst
))
:
"?"
);
lcid
=
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
);
if
(
HAVE_OLEAUT32_LOCALES
)
{
DATE_STR
(
VARIANT_NOUSEROVERRIDE
|
VARIANT_USE_NLS
,
sz25570Nls
);
hres
=
VariantChangeTypeEx
(
&
vDst
,
&
vSrc
,
lcid
,
VARIANT_NOUSEROVERRIDE
|
VARIANT_USE_NLS
,
VT_BSTR
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
vDst
)
==
VT_BSTR
&&
V_BSTR
(
&
vDst
)
&&
!
strcmpW
(
V_BSTR
(
&
vDst
),
sz25570Nls
),
"hres=0x%lX, type=%d (should be VT_BSTR), *bstr=%s
\n
"
,
hres
,
V_VT
(
&
vDst
),
V_BSTR
(
&
vDst
)
?
wtoascii
(
V_BSTR
(
&
vDst
))
:
"?"
);
}
}
...
...
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