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
b2f26690
Commit
b2f26690
authored
Jun 29, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys/tests: Use standard wine_dbgstr_longlong.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
87b72098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
propsys.c
dlls/propsys/tests/propsys.c
+8
-18
No files found.
dlls/propsys/tests/propsys.c
View file @
b2f26690
...
...
@@ -763,16 +763,6 @@ static void test_PropVariantCompare(void)
SysFreeString
(
str_b
.
u
.
bstrVal
);
}
static
inline
const
char
*
debugstr_longlong
(
ULONGLONG
ll
)
{
static
char
string
[
17
];
if
(
sizeof
(
ll
)
>
sizeof
(
unsigned
long
)
&&
ll
>>
32
)
sprintf
(
string
,
"%lx%08lx"
,
(
unsigned
long
)(
ll
>>
32
),
(
unsigned
long
)
ll
);
else
sprintf
(
string
,
"%lx"
,
(
unsigned
long
)
ll
);
return
string
;
}
static
void
test_intconversions
(
void
)
{
PROPVARIANT
propvar
;
...
...
@@ -796,7 +786,7 @@ static void test_intconversions(void)
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
(
ULONGLONG
)
1
<<
63
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
(
ULONGLONG
)
1
<<
63
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
hr
=
PropVariantToUInt64
(
&
propvar
,
&
ullval
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ARITHMETIC_OVERFLOW
),
"hr=%x
\n
"
,
hr
);
...
...
@@ -818,11 +808,11 @@ static void test_intconversions(void)
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
5
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
5
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
hr
=
PropVariantToUInt64
(
&
propvar
,
&
ullval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
ullval
==
5
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
ullval
));
ok
(
ullval
==
5
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
ullval
));
hr
=
PropVariantToInt32
(
&
propvar
,
&
lval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
...
...
@@ -845,7 +835,7 @@ static void test_intconversions(void)
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
-
5
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
-
5
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
hr
=
PropVariantToUInt64
(
&
propvar
,
&
ullval
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_ARITHMETIC_OVERFLOW
),
"hr=%x
\n
"
,
hr
);
...
...
@@ -869,28 +859,28 @@ static void test_intconversions(void)
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
6
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
6
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
propvar
.
vt
=
VT_I4
;
propvar
.
u
.
lVal
=
-
6
;
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
-
6
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
-
6
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
propvar
.
vt
=
VT_UI2
;
propvar
.
u
.
uiVal
=
7
;
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
7
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
7
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
propvar
.
vt
=
VT_I2
;
propvar
.
u
.
iVal
=
-
7
;
hr
=
PropVariantToInt64
(
&
propvar
,
&
llval
);
ok
(
hr
==
S_OK
,
"hr=%x
\n
"
,
hr
);
ok
(
llval
==
-
7
,
"got wrong value %s
\n
"
,
debu
gstr_longlong
(
llval
));
ok
(
llval
==
-
7
,
"got wrong value %s
\n
"
,
wine_db
gstr_longlong
(
llval
));
}
static
void
test_PropVariantChangeType_LPWSTR
(
void
)
...
...
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