Paul Vriens : crypt32: Simplify by removing unneeded backslash.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Sep 20 13:27:06 CDT 2006


Module: wine
Branch: master
Commit: 4c32875e9226498fcb9ab821f0a7ae6584934da8
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=4c32875e9226498fcb9ab821f0a7ae6584934da8

Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date:   Wed Sep 20 15:51:23 2006 +0200

crypt32: Simplify by removing unneeded backslash.

---

 dlls/crypt32/sip.c |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/dlls/crypt32/sip.c b/dlls/crypt32/sip.c
index 15ec3f5..3b1e17d 100644
--- a/dlls/crypt32/sip.c
+++ b/dlls/crypt32/sip.c
@@ -41,22 +41,20 @@ static const WCHAR szOID[] = {
     'E','n','c','o','d','i','n','g','T','y','p','e',' ','0','\\',
     'C','r','y','p','t','S','I','P','D','l','l', 0 };
 
-static const WCHAR szBackSlash[] = { '\\', 0 };
-
 static const WCHAR szPutSigned[] = {
-    'P','u','t','S','i','g','n','e','d','D','a','t','a','M','s','g',0};
+    'P','u','t','S','i','g','n','e','d','D','a','t','a','M','s','g','\\',0};
 static const WCHAR szGetSigned[] = {
-    'G','e','t','S','i','g','n','e','d','D','a','t','a','M','s','g',0};
+    'G','e','t','S','i','g','n','e','d','D','a','t','a','M','s','g','\\',0};
 static const WCHAR szRemoveSigned[] = {
-    'R','e','m','o','v','e','S','i','g','n','e','d','D','a','t','a','M','s','g',0};
+    'R','e','m','o','v','e','S','i','g','n','e','d','D','a','t','a','M','s','g','\\',0};
 static const WCHAR szCreate[] = {
-    'C','r','e','a','t','e','I','n','d','i','r','e','c','t','D','a','t','a',0};
+    'C','r','e','a','t','e','I','n','d','i','r','e','c','t','D','a','t','a','\\',0};
 static const WCHAR szVerify[] = {
-    'V','e','r','i','f','y','I','n','d','i','r','e','c','t','D','a','t','a',0};
+    'V','e','r','i','f','y','I','n','d','i','r','e','c','t','D','a','t','a','\\',0};
 static const WCHAR szIsMyFile[] = {
-    'I','s','M','y','F','i','l','e','T','y','p','e', 0 };
+    'I','s','M','y','F','i','l','e','T','y','p','e','\\',0};
 static const WCHAR szIsMyFile2[] = {
-    'I','s','M','y','F','i','l','e','T','y','p','e','2', 0};
+    'I','s','M','y','F','i','l','e','T','y','p','e','2','\\',0};
 
 /* convert a guid to a wide character string */
 static void CRYPT_guid2wstr( LPGUID guid, LPWSTR wstr )
@@ -83,9 +81,7 @@ static LONG CRYPT_SIPDeleteFunction( LPG
     /* max length of szFullKey depends on our code only, so we won't overrun */
     lstrcpyW( szFullKey, szOID );
     lstrcatW( szFullKey, szKey );
-    lstrcatW( szFullKey, szBackSlash );
     CRYPT_guid2wstr( guid, &szFullKey[ lstrlenW( szFullKey ) ] );
-    lstrcatW( szFullKey, szBackSlash );
 
     r = RegDeleteKeyW(HKEY_LOCAL_MACHINE, szFullKey);
 
@@ -166,9 +162,7 @@ static LONG CRYPT_SIPWriteFunction( LPGU
     /* max length of szFullKey depends on our code only, so we won't overrun */
     lstrcpyW( szFullKey, szOID );
     lstrcatW( szFullKey, szKey );
-    lstrcatW( szFullKey, szBackSlash );
     CRYPT_guid2wstr( guid, &szFullKey[ lstrlenW( szFullKey ) ] );
-    lstrcatW( szFullKey, szBackSlash );
 
     TRACE("key is %s\n", debugstr_w( szFullKey ) );
 




More information about the wine-cvs mailing list