Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d70d6b84
Commit
d70d6b84
authored
Feb 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Avoid sizeof in traces.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
651c4462
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
devinst.c
dlls/setupapi/tests/devinst.c
+5
-5
No files found.
dlls/setupapi/tests/devinst.c
View file @
d70d6b84
...
...
@@ -568,7 +568,7 @@ static void test_device_property(void)
ok
(
!
ret
,
"Expect failure
\n
"
);
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Expect last error %#x, got %#x
\n
"
,
ERROR_INSUFFICIENT_BUFFER
,
err
);
ok
(
type
==
DEVPROP_TYPE_STRING
,
"Expect type %#x, got %#x
\n
"
,
DEVPROP_TYPE_STRING
,
type
);
ok
(
size
==
sizeof
(
valueW
),
"
Expect size %d, got %d
\n
"
,
sizeof
(
valueW
)
,
size
);
ok
(
size
==
sizeof
(
valueW
),
"
Got size %d
\n
"
,
size
);
/* #7 Zero buffer size */
SetLastError
(
0xdeadbeef
);
...
...
@@ -579,7 +579,7 @@ static void test_device_property(void)
ok
(
!
ret
,
"Expect failure
\n
"
);
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Expect last error %#x, got %#x
\n
"
,
ERROR_INSUFFICIENT_BUFFER
,
err
);
ok
(
type
==
DEVPROP_TYPE_STRING
,
"Expect type %#x, got %#x
\n
"
,
DEVPROP_TYPE_STRING
,
type
);
ok
(
size
==
sizeof
(
valueW
),
"
Expect size %d, got %d
\n
"
,
sizeof
(
valueW
)
,
size
);
ok
(
size
==
sizeof
(
valueW
),
"
Got size %d
\n
"
,
size
);
/* #8 Null required size */
SetLastError
(
0xdeadbeef
);
...
...
@@ -621,7 +621,7 @@ static void test_device_property(void)
ok
(
ret
,
"Expect success
\n
"
);
ok
(
err
==
NO_ERROR
,
"Expect last error %#x, got %#x
\n
"
,
NO_ERROR
,
err
);
ok
(
type
==
DEVPROP_TYPE_STRING
,
"Expect type %#x, got %#x
\n
"
,
DEVPROP_TYPE_STRING
,
type
);
ok
(
size
==
sizeof
(
valueW
),
"
Expect size %d, got %d
\n
"
,
sizeof
(
valueW
)
,
size
);
ok
(
size
==
sizeof
(
valueW
),
"
Got size %d
\n
"
,
size
);
ok
(
!
lstrcmpW
((
WCHAR
*
)
buffer
,
valueW
),
"Expect buffer %s, got %s
\n
"
,
wine_dbgstr_w
(
valueW
),
wine_dbgstr_w
((
WCHAR
*
)
buffer
));
/* #12 Get null property value */
...
...
@@ -649,7 +649,7 @@ static void test_device_property(void)
ok
(
!
ret
,
"Expect failure
\n
"
);
ok
(
err
==
ERROR_INSUFFICIENT_BUFFER
,
"Expect last error %#x, got %#x
\n
"
,
ERROR_INSUFFICIENT_BUFFER
,
err
);
ok
(
type
==
DEVPROP_TYPE_STRING
,
"Expect type %#x, got %#x
\n
"
,
DEVPROP_TYPE_STRING
,
type
);
ok
(
size
==
sizeof
(
valueW
),
"
Expect size %d, got %d
\n
"
,
sizeof
(
valueW
)
,
size
);
ok
(
size
==
sizeof
(
valueW
),
"
Got size %d
\n
"
,
size
);
/* #14 Normal */
ret
=
pSetupDiSetDevicePropertyW
(
set
,
&
device_data
,
&
DEVPKEY_Device_FriendlyName
,
DEVPROP_TYPE_STRING
,
(
const
BYTE
*
)
valueW
,
sizeof
(
valueW
),
0
);
...
...
@@ -663,7 +663,7 @@ static void test_device_property(void)
ok
(
ret
,
"Expect success
\n
"
);
ok
(
err
==
NO_ERROR
,
"Expect last error %#x, got %#x
\n
"
,
NO_ERROR
,
err
);
ok
(
type
==
DEVPROP_TYPE_STRING
,
"Expect type %#x, got %#x
\n
"
,
DEVPROP_TYPE_STRING
,
type
);
ok
(
size
==
sizeof
(
valueW
),
"
Expect size %d, got %d
\n
"
,
sizeof
(
valueW
)
,
size
);
ok
(
size
==
sizeof
(
valueW
),
"
Got size %d
\n
"
,
size
);
ok
(
!
lstrcmpW
((
WCHAR
*
)
buffer
,
valueW
),
"Expect buffer %s, got %s
\n
"
,
wine_dbgstr_w
(
valueW
),
wine_dbgstr_w
((
WCHAR
*
)
buffer
));
ret
=
SetupDiRemoveDevice
(
set
,
&
device_data
);
...
...
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