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
8b1b0c71
Commit
8b1b0c71
authored
Oct 03, 2006
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Replace bad use of sprintf by 2 strcats.
parent
ef5f3601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sip.c
dlls/crypt32/tests/sip.c
+4
-2
No files found.
dlls/crypt32/tests/sip.c
View file @
8b1b0c71
...
@@ -164,8 +164,10 @@ static void test_SIPRetrieveSubjectGUID(void)
...
@@ -164,8 +164,10 @@ static void test_SIPRetrieveSubjectGUID(void)
*
*
* Use A-functions where possible as that should be available on all platforms
* Use A-functions where possible as that should be available on all platforms
*/
*/
GetEnvironmentVariableA
(
windir
,
regeditPath
,
MAX_PATH
);
ret
=
GetEnvironmentVariableA
(
windir
,
regeditPath
,
MAX_PATH
);
sprintf
(
regeditPath
,
"%s
\\
%s"
,
regeditPath
,
regeditExe
);
ok
(
ret
>
0
,
"expected GEVA(windir) to succeed, last error %d
\n
"
,
GetLastError
());
strcat
(
regeditPath
,
"
\\
"
);
strcat
(
regeditPath
,
regeditExe
);
MultiByteToWideChar
(
CP_ACP
,
0
,
regeditPath
,
MultiByteToWideChar
(
CP_ACP
,
0
,
regeditPath
,
strlen
(
regeditPath
)
+
1
,
regeditPathW
,
strlen
(
regeditPath
)
+
1
,
regeditPathW
,
sizeof
(
regeditPathW
)
/
sizeof
(
regeditPathW
[
0
])
);
sizeof
(
regeditPathW
)
/
sizeof
(
regeditPathW
[
0
])
);
...
...
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