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
0e8c4320
Commit
0e8c4320
authored
Oct 14, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msisip: Use wide-char string literals.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e909986e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
main.c
dlls/msisip/main.c
+8
-18
No files found.
dlls/msisip/main.c
View file @
0e8c4320
...
...
@@ -52,21 +52,13 @@ static GUID mySubject = { 0x000c10f1, 0x0000, 0x0000,
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
static
WCHAR
msisip
[]
=
{
'M'
,
'S'
,
'I'
,
'S'
,
'I'
,
'P'
,
'.'
,
'D'
,
'L'
,
'L'
,
0
};
static
WCHAR
getSignedDataMsg
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'G'
,
'e'
,
't'
,
'S'
,
'i'
,
'g'
,
'n'
,
'e'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
'M'
,
's'
,
'g'
,
0
};
static
WCHAR
putSignedDataMsg
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'P'
,
'u'
,
't'
,
'S'
,
'i'
,
'g'
,
'n'
,
'e'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
'M'
,
's'
,
'g'
,
0
};
static
WCHAR
createIndirectData
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'C'
,
'r'
,
'e'
,
'a'
,
't'
,
'e'
,
'I'
,
'n'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
WCHAR
verifyIndirectData
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'V'
,
'e'
,
'r'
,
'i'
,
'f'
,
'y'
,
'I'
,
'n'
,
'd'
,
'i'
,
'r'
,
'e'
,
'c'
,
't'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
static
WCHAR
removeSignedDataMsg
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'R'
,
'e'
,
'm'
,
'o'
,
'v'
,
'e'
,
'S'
,
'i'
,
'g'
,
'n'
,
'e'
,
'd'
,
'D'
,
'a'
,
't'
,
'a'
,
'M'
,
's'
,
'g'
,
0
};
static
WCHAR
isMyTypeOfFile
[]
=
{
'M'
,
's'
,
'i'
,
'S'
,
'I'
,
'P'
,
'I'
,
's'
,
'M'
,
'y'
,
'T'
,
'y'
,
'p'
,
'e'
,
'O'
,
'f'
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
WCHAR
msisip
[]
=
L"MSISIP.DLL"
;
static
WCHAR
getSignedDataMsg
[]
=
L"MsiSIPGetSignedDataMsg"
;
static
WCHAR
putSignedDataMsg
[]
=
L"MsiSIPPutSignedDataMsg"
;
static
WCHAR
createIndirectData
[]
=
L"MsiSIPCreateIndirectData"
;
static
WCHAR
verifyIndirectData
[]
=
L"MsiSIPVerifyIndirectData"
;
static
WCHAR
removeSignedDataMsg
[]
=
L"MsiSIPRemoveSignedDataMsg"
;
static
WCHAR
isMyTypeOfFile
[]
=
L"MsiSIPIsMyTypeOfFile"
;
SIP_ADD_NEWPROVIDER
prov
;
...
...
@@ -100,8 +92,6 @@ BOOL WINAPI MsiSIPGetSignedDataMsg(SIP_SUBJECTINFO *pSubjectInfo,
DWORD
*
pdwEncodingType
,
DWORD
dwIndex
,
DWORD
*
pcbSignedDataMsg
,
BYTE
*
pbSignedDataMsg
)
{
static
const
WCHAR
digitalSig
[]
=
{
5
,
'D'
,
'i'
,
'g'
,
'i'
,
't'
,
'a'
,
'l'
,
'S'
,
'i'
,
'g'
,
'n'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
0
};
BOOL
ret
=
FALSE
;
IStorage
*
stg
=
NULL
;
HRESULT
r
;
...
...
@@ -120,7 +110,7 @@ BOOL WINAPI MsiSIPGetSignedDataMsg(SIP_SUBJECTINFO *pSubjectInfo,
goto
end
;
}
r
=
IStorage_OpenStream
(
stg
,
digitalSig
,
0
,
r
=
IStorage_OpenStream
(
stg
,
L"
\5
DigitalSignature"
,
0
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stm
);
if
(
FAILED
(
r
))
{
...
...
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