[PATCH] mscms/tests: Inline a simple string.

Michael Stefaniuc mstefani at winehq.org
Sun Nov 15 16:11:19 CST 2020


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/mscms/tests/profile.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index 063ea22420d..be4eaa66c00 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -772,7 +772,6 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
     {
         CHAR dest[MAX_PATH], base[MAX_PATH];
         DWORD size = sizeof(dest);
-        CHAR slash[] = "\\";
         HANDLE handle;
 
         SetLastError(0xdeadbeef);
@@ -789,7 +788,7 @@ static void test_InstallColorProfileA( char *standardprofile, char *testprofile
 
         MSCMS_basenameA( testprofile, base );
 
-        lstrcatA( dest, slash );
+        lstrcatA( dest, "\\" );
         lstrcatA( dest, base );
 
         /* Check if the profile is really there */ 
@@ -1157,7 +1156,6 @@ static void test_UninstallColorProfileA( char *testprofile )
     {
         CHAR dest[MAX_PATH], base[MAX_PATH];
         DWORD size = sizeof(dest);
-        CHAR slash[] = "\\";
         HANDLE handle;
 
         SetLastError(0xdeadbeef);
@@ -1174,7 +1172,7 @@ static void test_UninstallColorProfileA( char *testprofile )
 
         MSCMS_basenameA( testprofile, base );
 
-        lstrcatA( dest, slash );
+        lstrcatA( dest, "\\" );
         lstrcatA( dest, base );
 
         ret = pUninstallColorProfileA( NULL, dest, TRUE );
-- 
2.26.2




More information about the wine-devel mailing list