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
ef6055c1
Commit
ef6055c1
authored
Jul 06, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Avoid sizeof() in traces.
parent
d0c6486f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
volume.c
dlls/kernel32/tests/volume.c
+4
-8
No files found.
dlls/kernel32/tests/volume.c
View file @
ef6055c1
...
...
@@ -1565,8 +1565,7 @@ static void test_GetVolumeInformationByHandle(void)
attr_info
->
MaximumComponentNameLength
,
filename_len
);
ok
(
!
wcscmp
(
fsname
,
attr_info
->
FileSystemName
),
"expected fsname %s, got %s
\n
"
,
debugstr_w
(
attr_info
->
FileSystemName
),
debugstr_w
(
fsname
));
ok
(
wcslen
(
fsname
)
==
attr_info
->
FileSystemNameLength
/
sizeof
(
WCHAR
),
"expected fsname length %Iu, got %Iu
\n
"
,
attr_info
->
FileSystemNameLength
/
sizeof
(
WCHAR
),
wcslen
(
fsname
));
ok
(
wcslen
(
fsname
)
==
attr_info
->
FileSystemNameLength
/
sizeof
(
WCHAR
),
"got %Iu
\n
"
,
wcslen
(
fsname
));
SetLastError
(
0xdeadbeef
);
ret
=
pGetVolumeInformationByHandleW
(
file
,
NULL
,
0
,
NULL
,
&
filename_len
,
&
flags
,
fsname
,
2
);
...
...
@@ -1580,8 +1579,7 @@ static void test_GetVolumeInformationByHandle(void)
volume_info
->
VolumeSerialNumber
,
serial
);
ok
(
!
wcscmp
(
label
,
volume_info
->
VolumeLabel
),
"expected label %s, got %s
\n
"
,
debugstr_w
(
volume_info
->
VolumeLabel
),
debugstr_w
(
label
));
ok
(
wcslen
(
label
)
==
volume_info
->
VolumeLabelLength
/
sizeof
(
WCHAR
),
"expected label length %Iu, got %Iu
\n
"
,
volume_info
->
VolumeLabelLength
/
sizeof
(
WCHAR
),
wcslen
(
label
));
ok
(
wcslen
(
label
)
==
volume_info
->
VolumeLabelLength
/
sizeof
(
WCHAR
),
"got %Iu
\n
"
,
wcslen
(
label
));
CloseHandle
(
file
);
...
...
@@ -1606,8 +1604,7 @@ static void test_GetVolumeInformationByHandle(void)
volume_info
->
VolumeSerialNumber
,
serial
);
ok
(
!
wcscmp
(
label
,
volume_info
->
VolumeLabel
),
"expected label %s, got %s
\n
"
,
debugstr_w
(
volume_info
->
VolumeLabel
),
debugstr_w
(
label
));
ok
(
wcslen
(
label
)
==
volume_info
->
VolumeLabelLength
/
sizeof
(
WCHAR
),
"expected label length %Iu, got %Iu
\n
"
,
volume_info
->
VolumeLabelLength
/
sizeof
(
WCHAR
),
wcslen
(
label
));
ok
(
wcslen
(
label
)
==
volume_info
->
VolumeLabelLength
/
sizeof
(
WCHAR
),
"got %Iu
\n
"
,
wcslen
(
label
));
memset
(
buffer
,
0
,
sizeof
(
buffer
));
status
=
NtQueryVolumeInformationFile
(
file
,
&
io
,
buffer
,
sizeof
(
buffer
),
FileFsAttributeInformation
);
...
...
@@ -1618,8 +1615,7 @@ static void test_GetVolumeInformationByHandle(void)
attr_info
->
MaximumComponentNameLength
,
filename_len
);
ok
(
!
wcscmp
(
fsname
,
attr_info
->
FileSystemName
),
"expected fsname %s, got %s
\n
"
,
debugstr_w
(
attr_info
->
FileSystemName
),
debugstr_w
(
fsname
));
ok
(
wcslen
(
fsname
)
==
attr_info
->
FileSystemNameLength
/
sizeof
(
WCHAR
),
"expected fsname length %Iu, got %Iu
\n
"
,
attr_info
->
FileSystemNameLength
/
sizeof
(
WCHAR
),
wcslen
(
fsname
));
ok
(
wcslen
(
fsname
)
==
attr_info
->
FileSystemNameLength
/
sizeof
(
WCHAR
),
"got %Iu
\n
"
,
wcslen
(
fsname
));
CloseHandle
(
file
);
}
...
...
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