Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7204f0f6
Commit
7204f0f6
authored
Apr 23, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Avoid using snprintf().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0f38b850
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
install.c
dlls/setupapi/tests/install.c
+10
-10
No files found.
dlls/setupapi/tests/install.c
View file @
7204f0f6
...
...
@@ -455,7 +455,7 @@ static void test_profile_items(void)
goto
cleanup
;
}
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestDir"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestDir"
,
commonprogs
);
if
(
!
CreateDirectoryA
(
path
,
NULL
)
&&
GetLastError
()
==
ERROR_ACCESS_DENIED
)
{
skip
(
"need admin rights
\n
"
);
...
...
@@ -467,23 +467,23 @@ static void test_profile_items(void)
sprintf
(
path
,
"%s
\\
%s"
,
CURR_DIR
,
inffile
);
run_cmdline
(
"DefaultInstall"
,
128
,
path
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestItem.lnk"
,
commonprogs
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestDir"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestItem.lnk"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestDir"
,
commonprogs
);
ok
(
INVALID_FILE_ATTRIBUTES
!=
GetFileAttributesA
(
path
),
"directory not created
\n
"
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestDir
\\
TestItem2.lnk"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestDir
\\
TestItem2.lnk"
,
commonprogs
);
ok
(
INVALID_FILE_ATTRIBUTES
!=
GetFileAttributesA
(
path
),
"link not created
\n
"
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestGroup"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestGroup"
,
commonprogs
);
ok
(
INVALID_FILE_ATTRIBUTES
!=
GetFileAttributesA
(
path
),
"group not created
\n
"
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestItem.lnk"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestItem.lnk"
,
commonprogs
);
DeleteFileA
(
path
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestDir
\\
TestItem2.lnk"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestDir
\\
TestItem2.lnk"
,
commonprogs
);
DeleteFileA
(
path
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestItem2.lnk"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestItem2.lnk"
,
commonprogs
);
DeleteFileA
(
path
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestDir"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestDir"
,
commonprogs
);
RemoveDirectoryA
(
path
);
s
nprintf
(
path
,
MAX_PATH
,
"%s
\\
TestGroup"
,
commonprogs
);
s
printf
(
path
,
"%s
\\
TestGroup"
,
commonprogs
);
RemoveDirectoryA
(
path
);
cleanup:
...
...
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