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
4c32875e
Commit
4c32875e
authored
Sep 20, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Simplify by removing unneeded backslash.
parent
8b368b9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
sip.c
dlls/crypt32/sip.c
+7
-13
No files found.
dlls/crypt32/sip.c
View file @
4c32875e
...
@@ -41,22 +41,20 @@ static const WCHAR szOID[] = {
...
@@ -41,22 +41,20 @@ static const WCHAR szOID[] = {
'E'
,
'n'
,
'c'
,
'o'
,
'd'
,
'i'
,
'n'
,
'g'
,
'T'
,
'y'
,
'p'
,
'e'
,
' '
,
'0'
,
'\\'
,
'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
};
'C'
,
'r'
,
'y'
,
'p'
,
't'
,
'S'
,
'I'
,
'P'
,
'D'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
szBackSlash
[]
=
{
'\\'
,
0
};
static
const
WCHAR
szPutSigned
[]
=
{
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
[]
=
{
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
[]
=
{
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
[]
=
{
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
[]
=
{
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
[]
=
{
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
[]
=
{
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 */
/* convert a guid to a wide character string */
static
void
CRYPT_guid2wstr
(
LPGUID
guid
,
LPWSTR
wstr
)
static
void
CRYPT_guid2wstr
(
LPGUID
guid
,
LPWSTR
wstr
)
...
@@ -83,9 +81,7 @@ static LONG CRYPT_SIPDeleteFunction( LPGUID guid, LPCWSTR szKey )
...
@@ -83,9 +81,7 @@ static LONG CRYPT_SIPDeleteFunction( LPGUID guid, LPCWSTR szKey )
/* max length of szFullKey depends on our code only, so we won't overrun */
/* max length of szFullKey depends on our code only, so we won't overrun */
lstrcpyW
(
szFullKey
,
szOID
);
lstrcpyW
(
szFullKey
,
szOID
);
lstrcatW
(
szFullKey
,
szKey
);
lstrcatW
(
szFullKey
,
szKey
);
lstrcatW
(
szFullKey
,
szBackSlash
);
CRYPT_guid2wstr
(
guid
,
&
szFullKey
[
lstrlenW
(
szFullKey
)
]
);
CRYPT_guid2wstr
(
guid
,
&
szFullKey
[
lstrlenW
(
szFullKey
)
]
);
lstrcatW
(
szFullKey
,
szBackSlash
);
r
=
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szFullKey
);
r
=
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
szFullKey
);
...
@@ -166,9 +162,7 @@ static LONG CRYPT_SIPWriteFunction( LPGUID guid, LPCWSTR szKey,
...
@@ -166,9 +162,7 @@ static LONG CRYPT_SIPWriteFunction( LPGUID guid, LPCWSTR szKey,
/* max length of szFullKey depends on our code only, so we won't overrun */
/* max length of szFullKey depends on our code only, so we won't overrun */
lstrcpyW
(
szFullKey
,
szOID
);
lstrcpyW
(
szFullKey
,
szOID
);
lstrcatW
(
szFullKey
,
szKey
);
lstrcatW
(
szFullKey
,
szKey
);
lstrcatW
(
szFullKey
,
szBackSlash
);
CRYPT_guid2wstr
(
guid
,
&
szFullKey
[
lstrlenW
(
szFullKey
)
]
);
CRYPT_guid2wstr
(
guid
,
&
szFullKey
[
lstrlenW
(
szFullKey
)
]
);
lstrcatW
(
szFullKey
,
szBackSlash
);
TRACE
(
"key is %s
\n
"
,
debugstr_w
(
szFullKey
)
);
TRACE
(
"key is %s
\n
"
,
debugstr_w
(
szFullKey
)
);
...
...
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