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
a4087cec
Commit
a4087cec
authored
Feb 09, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0db20c44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
Makefile.in
dlls/cryptui/Makefile.in
+0
-1
main.c
dlls/cryptui/main.c
+19
-19
No files found.
dlls/cryptui/Makefile.in
View file @
a4087cec
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
cryptui.dll
IMPORTS
=
uuid crypt32 ole32 comctl32 comdlg32 user32 gdi32 advapi32
DELAYIMPORTS
=
wintrust urlmon
...
...
dlls/cryptui/main.c
View file @
a4087cec
...
...
@@ -48,7 +48,7 @@ static const WCHAR empty[] = {0};
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
TRACE
(
"(0x%p, %d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
TRACE
(
"(0x%p, %
l
d, %p)
\n
"
,
hinstDLL
,
fdwReason
,
lpvReserved
);
switch
(
fdwReason
)
{
...
...
@@ -1298,7 +1298,7 @@ BOOL WINAPI CryptUIDlgCertMgr(PCCRYPTUI_CERT_MGR_STRUCT pCryptUICertMgr)
if
(
pCryptUICertMgr
->
dwSize
!=
sizeof
(
CRYPTUI_CERT_MGR_STRUCT
))
{
WARN
(
"unexpected size %d
\n
"
,
pCryptUICertMgr
->
dwSize
);
WARN
(
"unexpected size %
l
d
\n
"
,
pCryptUICertMgr
->
dwSize
);
SetLastError
(
E_INVALIDARG
);
return
FALSE
;
}
...
...
@@ -1605,7 +1605,7 @@ HCERTSTORE WINAPI CryptUIDlgSelectStoreW(PCRYPTUI_SELECTSTORE_INFO_W info)
if
(
info
->
dwSize
!=
sizeof
(
CRYPTUI_SELECTSTORE_INFO_W
))
{
WARN
(
"unexpected size %d
\n
"
,
info
->
dwSize
);
WARN
(
"unexpected size %
l
d
\n
"
,
info
->
dwSize
);
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
...
...
@@ -1627,7 +1627,7 @@ HCERTSTORE WINAPI CryptUIDlgSelectStoreA(PCRYPTUI_SELECTSTORE_INFO_A info)
if
(
info
->
dwSize
!=
sizeof
(
CRYPTUI_SELECTSTORE_INFO_A
))
{
WARN
(
"unexpected size %d
\n
"
,
info
->
dwSize
);
WARN
(
"unexpected size %
l
d
\n
"
,
info
->
dwSize
);
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
...
...
@@ -1706,7 +1706,7 @@ static DWORD CALLBACK read_text_callback(DWORD_PTR dwCookie, LPBYTE buf,
struct
ReadStringStruct
*
string
=
(
struct
ReadStringStruct
*
)
dwCookie
;
LONG
cch
=
min
(
cb
/
sizeof
(
WCHAR
),
string
->
len
-
string
->
pos
);
TRACE
(
"(%p, %p, %d, %p)
\n
"
,
string
,
buf
,
cb
,
pcb
);
TRACE
(
"(%p, %p, %
l
d, %p)
\n
"
,
string
,
buf
,
cb
,
pcb
);
memmove
(
buf
,
string
->
buf
+
string
->
pos
,
cch
*
sizeof
(
WCHAR
));
string
->
pos
+=
cch
;
...
...
@@ -2497,7 +2497,7 @@ static INT_PTR CALLBACK general_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
PROPSHEETPAGEW
*
page
;
PCCRYPTUI_VIEWCERTIFICATE_STRUCTW
pCertViewInfo
;
TRACE
(
"(%p, %08x, %08
lx, %08l
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
TRACE
(
"(%p, %08x, %08
Ix, %08I
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
switch
(
msg
)
{
...
...
@@ -3586,7 +3586,7 @@ static INT_PTR CALLBACK cert_properties_general_dlg_proc(HWND hwnd, UINT msg,
{
PROPSHEETPAGEW
*
page
;
TRACE
(
"(%p, %08x, %08
lx, %08l
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
TRACE
(
"(%p, %08x, %08
Ix, %08I
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
switch
(
msg
)
{
...
...
@@ -3781,7 +3781,7 @@ static INT_PTR CALLBACK detail_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
PROPSHEETPAGEW
*
page
;
struct
detail_data
*
data
;
TRACE
(
"(%p, %08x, %08
lx, %08l
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
TRACE
(
"(%p, %08x, %08
Ix, %08I
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
switch
(
msg
)
{
...
...
@@ -4138,7 +4138,7 @@ static INT_PTR CALLBACK hierarchy_dlg_proc(HWND hwnd, UINT msg, WPARAM wp,
INT_PTR
ret
=
0
;
HWND
tree
=
GetDlgItem
(
hwnd
,
IDC_CERTPATH
);
TRACE
(
"(%p, %08x, %08
lx, %08l
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
TRACE
(
"(%p, %08x, %08
Ix, %08I
x)
\n
"
,
hwnd
,
msg
,
wp
,
lp
);
switch
(
msg
)
{
...
...
@@ -4267,7 +4267,7 @@ static int CALLBACK cert_prop_sheet_proc(HWND hwnd, UINT msg, LPARAM lp)
{
RECT
rc
;
TRACE
(
"(%p, %08x, %08
l
x)
\n
"
,
hwnd
,
msg
,
lp
);
TRACE
(
"(%p, %08x, %08
I
x)
\n
"
,
hwnd
,
msg
,
lp
);
switch
(
msg
)
{
...
...
@@ -4469,7 +4469,7 @@ BOOL WINAPI CryptUIDlgViewContext(DWORD dwContextType, LPVOID pvContext,
{
BOOL
ret
;
TRACE
(
"(%
d, %p, %p, %s, %08
x, %p)
\n
"
,
dwContextType
,
pvContext
,
hwnd
,
TRACE
(
"(%
ld, %p, %p, %s, %08l
x, %p)
\n
"
,
dwContextType
,
pvContext
,
hwnd
,
debugstr_w
(
pwszTitle
),
dwFlags
,
pvReserved
);
switch
(
dwContextType
)
...
...
@@ -4487,7 +4487,7 @@ BOOL WINAPI CryptUIDlgViewContext(DWORD dwContextType, LPVOID pvContext,
break
;
}
default:
FIXME
(
"unimplemented for context type %d
\n
"
,
dwContextType
);
FIXME
(
"unimplemented for context type %
l
d
\n
"
,
dwContextType
);
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
...
...
@@ -5335,7 +5335,7 @@ static BOOL do_import(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardTitle,
pImportSrc
->
u
.
hCertStore
,
hDestCertStore
);
break
;
default:
WARN
(
"unknown source type: %u
\n
"
,
pImportSrc
->
dwSubjectChoice
);
WARN
(
"unknown source type: %
l
u
\n
"
,
pImportSrc
->
dwSubjectChoice
);
SetLastError
(
E_INVALIDARG
);
ret
=
FALSE
;
}
...
...
@@ -5536,7 +5536,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
{
BOOL
ret
;
TRACE
(
"(0x%08x, %p, %s, %p, %p)
\n
"
,
dwFlags
,
hwndParent
,
debugstr_w
(
pwszWizardTitle
),
TRACE
(
"(0x%08
l
x, %p, %s, %p, %p)
\n
"
,
dwFlags
,
hwndParent
,
debugstr_w
(
pwszWizardTitle
),
pImportSrc
,
hDestCertStore
);
if
(
pImportSrc
&&
...
...
@@ -6967,7 +6967,7 @@ BOOL WINAPI CryptUIWizExport(DWORD dwFlags, HWND hwndParent,
{
BOOL
ret
;
TRACE
(
"(%08x, %p, %s, %p, %p)
\n
"
,
dwFlags
,
hwndParent
,
TRACE
(
"(%08
l
x, %p, %s, %p, %p)
\n
"
,
dwFlags
,
hwndParent
,
debugstr_w
(
pwszWizardTitle
),
pExportInfo
,
pvoid
);
if
(
!
(
dwFlags
&
CRYPTUI_WIZ_NO_UI
))
...
...
@@ -7409,7 +7409,7 @@ PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateW(PCCRYPTUI_SELECTCERTIFICATE_S
if
(
pcsc
->
dwSize
!=
sizeof
(
*
pcsc
)
&&
pcsc
->
dwSize
!=
sizeof
(
*
pcsc
)
-
sizeof
(
HCERTSTORE
))
{
WARN
(
"unexpected size %d
\n
"
,
pcsc
->
dwSize
);
WARN
(
"unexpected size %
l
d
\n
"
,
pcsc
->
dwSize
);
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
...
...
@@ -7511,7 +7511,7 @@ PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateA(PCCRYPTUI_SELECTCERTIFICATE_S
if
(
pcsc
->
dwSize
!=
sizeof
(
*
pcsc
)
&&
pcsc
->
dwSize
!=
sizeof
(
*
pcsc
)
-
sizeof
(
HCERTSTORE
))
{
WARN
(
"unexpected size %d
\n
"
,
pcsc
->
dwSize
);
WARN
(
"unexpected size %
l
d
\n
"
,
pcsc
->
dwSize
);
SetLastError
(
E_INVALIDARG
);
return
NULL
;
}
...
...
@@ -7548,7 +7548,7 @@ PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateFromStore(HCERTSTORE hCertStore
{
CRYPTUI_SELECTCERTIFICATE_STRUCTW
sc
;
TRACE
(
"%p %p %s %s %
x %
x %p
\n
"
,
hCertStore
,
hwnd
,
debugstr_w
(
pwszTitle
),
debugstr_w
(
pwszDisplayString
),
dwDontUseColumn
,
dwFlags
,
pvReserved
);
TRACE
(
"%p %p %s %s %
lx %l
x %p
\n
"
,
hCertStore
,
hwnd
,
debugstr_w
(
pwszTitle
),
debugstr_w
(
pwszDisplayString
),
dwDontUseColumn
,
dwFlags
,
pvReserved
);
memset
(
&
sc
,
0
,
sizeof
(
sc
));
...
...
@@ -7566,6 +7566,6 @@ PCCERT_CONTEXT WINAPI CryptUIDlgSelectCertificateFromStore(HCERTSTORE hCertStore
BOOL
WINAPI
CryptUIWizDigitalSign
(
DWORD
flags
,
HWND
parent
,
LPCWSTR
title
,
PCCRYPTUI_WIZ_DIGITAL_SIGN_INFO
info
,
PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT
*
context
)
{
FIXME
(
"%d %p %s %p %p: stub
\n
"
,
flags
,
parent
,
debugstr_w
(
title
),
info
,
context
);
FIXME
(
"%
l
d %p %s %p %p: stub
\n
"
,
flags
,
parent
,
debugstr_w
(
title
),
info
,
context
);
return
FALSE
;
}
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