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
3386c013
Commit
3386c013
authored
Aug 15, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Don't use strncat with known large enough buffer.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9b940964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
brsfolder.c
dlls/shell32/tests/brsfolder.c
+5
-5
No files found.
dlls/shell32/tests/brsfolder.c
View file @
3386c013
...
...
@@ -44,8 +44,8 @@ static int get_number_of_folders(LPCSTR path)
WIN32_FIND_DATAA
find_data
;
HANDLE
find_handle
;
lstrcpynA
(
path_search_string
,
path
,
MAX_PATH
);
str
ncat
(
path_search_string
,
"*"
,
1
);
lstrcpynA
(
path_search_string
,
path
,
MAX_PATH
-
1
);
str
cat
(
path_search_string
,
"*"
);
find_handle
=
FindFirstFileA
(
path_search_string
,
&
find_data
);
if
(
find_handle
==
INVALID_HANDLE_VALUE
)
...
...
@@ -186,9 +186,9 @@ static void test_click_make_new_folder_button(void)
{
skip
(
"GetCurrentDirectoryA failed %u
\n
"
,
GetLastError
());
}
str
ncat
(
test_folder_path
,
"
\\
"
,
1
);
str
ncat
(
test_folder_path
,
title
,
MAX_PATH
-
1
);
str
ncat
(
test_folder_path
,
"
\\
"
,
1
);
str
cat
(
test_folder_path
,
"
\\
"
);
str
cat
(
test_folder_path
,
title
);
str
cat
(
test_folder_path
,
"
\\
"
);
/* Avoid conflicts by creating a test folder. */
if
(
!
CreateDirectoryA
(
title
,
NULL
))
...
...
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