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
30a7d0a5
Commit
30a7d0a5
authored
Nov 07, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Avoid some array bounds warnings.
parent
6098a045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
shlfolder.c
dlls/shell32/tests/shlfolder.c
+4
-3
No files found.
dlls/shell32/tests/shlfolder.c
View file @
30a7d0a5
...
...
@@ -1806,6 +1806,7 @@ static void test_ITEMIDLIST_format(void) {
cbOffset
<=
pidlFile
->
mkid
.
cb
-
sizeof
(
struct
FileStructW
))
{
struct
FileStructW
*
pFileStructW
=
(
struct
FileStructW
*
)(((
LPBYTE
)
pidlFile
)
+
cbOffset
);
WCHAR
*
name
=
pFileStructW
->
wszName
;
ok
(
pidlFile
->
mkid
.
cb
==
cbOffset
+
pFileStructW
->
cbLen
,
"FileStructW's offset and length should add up to the PIDL's length!
\n
"
);
...
...
@@ -1842,9 +1843,9 @@ static void test_ITEMIDLIST_format(void) {
/* TODO: Perform check for date being within one day.*/
}
ok
(
!
lstrcmpW
(
wszFile
[
i
],
pFileStructW
->
wszN
ame
)
||
!
lstrcmpW
(
wszFile
[
i
],
(
WCHAR
*
)(
pFileStructW
->
abFooBar2
+
22
)
)
||
/* Vista */
!
lstrcmpW
(
wszFile
[
i
],
(
WCHAR
*
)(
pFileStructW
->
abFooBar2
+
26
)
),
/* Win7 */
ok
(
!
lstrcmpW
(
wszFile
[
i
],
n
ame
)
||
!
lstrcmpW
(
wszFile
[
i
],
name
+
9
)
||
/* Vista */
!
lstrcmpW
(
wszFile
[
i
],
name
+
11
),
/* Win7 */
"The filename should be stored in unicode at this position!
\n
"
);
}
}
...
...
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