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
392bce96
Commit
392bce96
authored
Dec 14, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase/tests: Fix some leaks (Valgrind).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
05f6769f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
path.c
dlls/kernelbase/tests/path.c
+3
-0
No files found.
dlls/kernelbase/tests/path.c
View file @
392bce96
...
...
@@ -323,6 +323,7 @@ static void test_PathAllocCanonicalize(void)
path_maxW
[
PATHCCH_MAX_CCH
-
1
]
=
'\0'
;
hr
=
pPathAllocCanonicalize
(
path_maxW
,
PATHCCH_ALLOW_LONG_PATHS
,
&
path_outW
);
ok
(
hr
==
S_OK
,
"expect hr %#x, got %#x
\n
"
,
S_OK
,
hr
);
LocalFree
(
path_outW
);
/* Check if flags added after Windows 10 1709 are supported */
MultiByteToWideChar
(
CP_ACP
,
0
,
"C:
\\
"
,
-
1
,
path_inW
,
ARRAY_SIZE
(
path_inW
));
...
...
@@ -449,12 +450,14 @@ static void test_PathAllocCombine(void)
ok
(
hr
==
S_OK
,
"expect hr %#x, got %#x
\n
"
,
S_OK
,
hr
);
WideCharToMultiByte
(
CP_ACP
,
0
,
resultW
,
-
1
,
resultA
,
ARRAY_SIZE
(
resultA
),
NULL
,
NULL
);
ok
(
!
lstrcmpA
(
resultA
,
"
\\
a"
),
"expect
\\
a, got %s
\n
"
,
resultA
);
LocalFree
(
resultW
);
MultiByteToWideChar
(
CP_ACP
,
0
,
"
\\
b"
,
-
1
,
path2W
,
ARRAY_SIZE
(
path2W
));
hr
=
pPathAllocCombine
(
NULL
,
path2W
,
0
,
&
resultW
);
ok
(
hr
==
S_OK
,
"expect hr %#x, got %#x
\n
"
,
S_OK
,
hr
);
WideCharToMultiByte
(
CP_ACP
,
0
,
resultW
,
-
1
,
resultA
,
ARRAY_SIZE
(
resultA
),
NULL
,
NULL
);
ok
(
!
lstrcmpA
(
resultA
,
"
\\
b"
),
"expect
\\
b, got %s
\n
"
,
resultA
);
LocalFree
(
resultW
);
hr
=
pPathAllocCombine
(
path1W
,
path2W
,
0
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"expect hr %#x, got %#x
\n
"
,
E_INVALIDARG
,
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