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
0c790adf
Commit
0c790adf
authored
Aug 28, 2018
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix buffer size to MultiByteToWideChar.
Signed-off-by:
Marcus Meissner
<
meissner@suse.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
59f33330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
path.c
dlls/ntdll/tests/path.c
+2
-2
No files found.
dlls/ntdll/tests/path.c
View file @
0c790adf
...
@@ -512,7 +512,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
...
@@ -512,7 +512,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
{
{
MultiByteToWideChar
(
CP_ACP
,
0
,
tests
[
i
].
dos
,
-
1
,
path
,
sizeof
(
path
));
MultiByteToWideChar
(
CP_ACP
,
0
,
tests
[
i
].
dos
,
-
1
,
path
,
ARRAY_SIZE
(
path
));
ret
=
pRtlDosPathNameToNtPathName_U
(
path
,
&
nameW
,
&
file_part
,
NULL
);
ret
=
pRtlDosPathNameToNtPathName_U
(
path
,
&
nameW
,
&
file_part
,
NULL
);
if
(
pRtlDosPathNameToNtPathName_U_WithStatus
)
if
(
pRtlDosPathNameToNtPathName_U_WithStatus
)
...
@@ -534,7 +534,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
...
@@ -534,7 +534,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
continue
;
continue
;
}
}
MultiByteToWideChar
(
CP_ACP
,
0
,
tests
[
i
].
nt
,
-
1
,
path
,
sizeof
(
path
));
MultiByteToWideChar
(
CP_ACP
,
0
,
tests
[
i
].
nt
,
-
1
,
path
,
ARRAY_SIZE
(
path
));
ok
(
!
lstrcmpW
(
nameW
.
Buffer
,
path
),
"%s: Expected %s, got %s.
\n
"
,
ok
(
!
lstrcmpW
(
nameW
.
Buffer
,
path
),
"%s: Expected %s, got %s.
\n
"
,
tests
[
i
].
dos
,
tests
[
i
].
nt
,
wine_dbgstr_w
(
nameW
.
Buffer
));
tests
[
i
].
dos
,
tests
[
i
].
nt
,
wine_dbgstr_w
(
nameW
.
Buffer
));
...
...
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