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
d47e638b
Commit
d47e638b
authored
Jan 11, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Test for return value directly.
parent
d91dbd0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vartest.c
dlls/oleaut32/tests/vartest.c
+4
-4
No files found.
dlls/oleaut32/tests/vartest.c
View file @
d47e638b
...
...
@@ -106,7 +106,7 @@ static void init(void)
HRESULT
res
;
res
=
VarBstrFromBool
(
VARIANT_TRUE
,
LANG_USER_DEFAULT
,
VAR_LOCALBOOL
,
&
bstr
);
ok
(
SUCCEEDED
(
res
)
&&
(
lstrlenW
(
bstr
)
>
0
),
ok
(
res
==
S_OK
&&
(
lstrlenW
(
bstr
)
>
0
),
"Expected localized string for 'True'
\n
"
);
/* lstrcpyW / lstrcatW do not work on win95 */
memcpy
(
sz12_true
,
sz12
,
sizeof
(
sz12
));
...
...
@@ -114,7 +114,7 @@ static void init(void)
SysFreeString
(
bstr
);
res
=
VarBstrFromBool
(
VARIANT_FALSE
,
LANG_USER_DEFAULT
,
VAR_LOCALBOOL
,
&
bstr
);
ok
(
SUCCEEDED
(
res
)
&&
(
lstrlenW
(
bstr
)
>
0
),
ok
(
res
==
S_OK
&&
(
lstrlenW
(
bstr
)
>
0
),
"Expected localized string for 'False'
\n
"
);
memcpy
(
sz12_false
,
sz12
,
sizeof
(
sz12
));
if
(
bstr
)
memcpy
(
&
sz12_false
[
2
],
bstr
,
SysStringByteLen
(
bstr
)
+
sizeof
(
WCHAR
));
...
...
@@ -1582,7 +1582,7 @@ static void test_UdateFromDate( int line, DATE dt, ULONG flags, HRESULT r, WORD
memset
(
&
ud
,
0
,
sizeof
(
ud
));
res
=
pVarUdateFromDate
(
dt
,
flags
,
&
ud
);
ok_
(
__FILE__
,
line
)(
r
==
res
&&
(
FAILED
(
res
)
||
(
ud
.
st
.
wYear
==
y
&&
ud
.
st
.
wMonth
==
m
&&
ud
.
st
.
wDay
==
d
&&
ok_
(
__FILE__
,
line
)(
r
==
res
&&
(
res
!=
S_OK
||
(
ud
.
st
.
wYear
==
y
&&
ud
.
st
.
wMonth
==
m
&&
ud
.
st
.
wDay
==
d
&&
ud
.
st
.
wHour
==
h
&&
ud
.
st
.
wMinute
==
mn
&&
ud
.
st
.
wSecond
==
s
&&
ud
.
st
.
wMilliseconds
==
ms
&&
ud
.
st
.
wDayOfWeek
==
dw
&&
ud
.
wDayOfYear
==
dy
)),
"%.16g expected res(%x) %d,%d,%d,%d,%d,%d,%d %d %d, got res(%x) %d,%d,%d,%d,%d,%d,%d %d %d
\n
"
,
...
...
@@ -1643,7 +1643,7 @@ static void test_DateFromUDate( int line, WORD d, WORD m, WORD y, WORD h, WORD m
ud
.
st
.
wDayOfWeek
=
dw
;
ud
.
wDayOfYear
=
dy
;
res
=
pVarDateFromUdate
(
&
ud
,
flags
,
&
out
);
ok_
(
__FILE__
,
line
)(
r
==
res
&&
(
FAILED
(
r
)
||
EQ_DOUBLE
(
out
,
dt
)),
ok_
(
__FILE__
,
line
)(
r
==
res
&&
(
r
!=
S_OK
||
EQ_DOUBLE
(
out
,
dt
)),
"expected %x, %.16g, got %x, %.16g
\n
"
,
r
,
dt
,
res
,
out
);
}
#define UD2T(d,m,y,h,mn,s,ms,dw,dy,flags,r,dt) test_DateFromUDate(__LINE__,d,m,y,h,mn,s,ms,dw,dy,flags,r,dt)
...
...
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