Commit 8b1b0c71 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

crypt32/tests: Replace bad use of sprintf by 2 strcats.

parent ef5f3601
...@@ -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]) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment