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
46e5dd39
Commit
46e5dd39
authored
Dec 08, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase/tests: Fix an uninitialized variable warning.
parent
620089aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
path.c
dlls/kernelbase/tests/path.c
+3
-2
No files found.
dlls/kernelbase/tests/path.c
View file @
46e5dd39
...
...
@@ -1212,14 +1212,15 @@ static void test_PathCchCanonicalizeEx(void)
ok
(
hr
==
E_INVALIDARG
,
"expect hr %#lx, got %#lx
\n
"
,
E_INVALIDARG
,
hr
);
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
path_inW
)
-
1
;
i
++
)
path_inW
[
i
]
=
'a'
;
path_inW
[
PATHCCH_MAX_CCH
]
=
'\0'
;
path_outW
[
0
]
=
0xff
;
hr
=
pPathCchCanonicalizeEx
(
path_outW
,
0
,
path_inW
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"expect hr %#lx, got %#lx
\n
"
,
E_INVALIDARG
,
hr
);
ok
(
path_outW
[
0
]
=
0xff
,
"expect path_outW unchanged
\n
"
);
/* Test path length */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
path_inW
)
-
1
;
i
++
)
path_inW
[
i
]
=
'a'
;
path_inW
[
PATHCCH_MAX_CCH
]
=
'\0'
;
hr
=
pPathCchCanonicalizeEx
(
path_outW
,
ARRAY_SIZE
(
path_outW
),
path_inW
,
PATHCCH_ALLOW_LONG_PATHS
);
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_FILENAME_EXCED_RANGE
),
"expect hr %#lx, got %#lx
\n
"
,
HRESULT_FROM_WIN32
(
ERROR_FILENAME_EXCED_RANGE
),
hr
);
...
...
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