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
189b6272
Commit
189b6272
authored
Feb 16, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8bbe1e45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
Makefile.in
dlls/oledlg/Makefile.in
+0
-1
oledlg_main.c
dlls/oledlg/oledlg_main.c
+1
-1
pastespl.c
dlls/oledlg/pastespl.c
+8
-8
No files found.
dlls/oledlg/Makefile.in
View file @
189b6272
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
oledlg.dll
MODULE
=
oledlg.dll
IMPORTLIB
=
oledlg
IMPORTLIB
=
oledlg
IMPORTS
=
ole32 comdlg32 user32 advapi32
IMPORTS
=
ole32 comdlg32 user32 advapi32
...
...
dlls/oledlg/oledlg_main.c
View file @
189b6272
...
@@ -84,7 +84,7 @@ static void register_messages(void)
...
@@ -84,7 +84,7 @@ static void register_messages(void)
*/
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
{
TRACE
(
"%p 0x%x %p
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
TRACE
(
"%p 0x%
l
x %p
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
...
...
dlls/oledlg/pastespl.c
View file @
189b6272
...
@@ -78,7 +78,7 @@ static void dump_ps_flags(DWORD flags)
...
@@ -78,7 +78,7 @@ static void dump_ps_flags(DWORD flags)
strcat
(
flagstr
,
"|"
);
strcat
(
flagstr
,
"|"
);
}
}
}
}
TRACE
(
"flags %08x %s
\n
"
,
flags
,
flagstr
);
TRACE
(
"flags %08
l
x %s
\n
"
,
flags
,
flagstr
);
}
}
static
void
dump_pastespecial
(
const
OLEUIPASTESPECIALW
*
ps
)
static
void
dump_pastespecial
(
const
OLEUIPASTESPECIALW
*
ps
)
...
@@ -87,7 +87,7 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
...
@@ -87,7 +87,7 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
UINT
j
;
UINT
j
;
dump_ps_flags
(
ps
->
dwFlags
);
dump_ps_flags
(
ps
->
dwFlags
);
TRACE
(
"hwnd %p caption %s hook %p custdata %
l
x
\n
"
,
TRACE
(
"hwnd %p caption %s hook %p custdata %
I
x
\n
"
,
ps
->
hWndOwner
,
debugstr_w
(
ps
->
lpszCaption
),
ps
->
lpfnHook
,
ps
->
lCustData
);
ps
->
hWndOwner
,
debugstr_w
(
ps
->
lpszCaption
),
ps
->
lpfnHook
,
ps
->
lCustData
);
if
(
IS_INTRESOURCE
(
ps
->
lpszTemplate
))
if
(
IS_INTRESOURCE
(
ps
->
lpszTemplate
))
TRACE
(
"hinst %p template %04x hresource %p
\n
"
,
ps
->
hInstance
,
(
WORD
)(
ULONG_PTR
)
ps
->
lpszTemplate
,
ps
->
hResource
);
TRACE
(
"hinst %p template %04x hresource %p
\n
"
,
ps
->
hInstance
,
(
WORD
)(
ULONG_PTR
)
ps
->
lpszTemplate
,
ps
->
hResource
);
...
@@ -96,16 +96,16 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
...
@@ -96,16 +96,16 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
TRACE
(
"dataobj %p arrpasteent %p cpasteent %d arrlinktype %p clinktype %d
\n
"
,
TRACE
(
"dataobj %p arrpasteent %p cpasteent %d arrlinktype %p clinktype %d
\n
"
,
ps
->
lpSrcDataObj
,
ps
->
arrPasteEntries
,
ps
->
cPasteEntries
,
ps
->
lpSrcDataObj
,
ps
->
arrPasteEntries
,
ps
->
cPasteEntries
,
ps
->
arrLinkTypes
,
ps
->
cLinkTypes
);
ps
->
arrLinkTypes
,
ps
->
cLinkTypes
);
TRACE
(
"cclsidex %d lpclsidex %p nselect %d flink %d hmetapict %p size(%
d,%
d)
\n
"
,
TRACE
(
"cclsidex %d lpclsidex %p nselect %d flink %d hmetapict %p size(%
ld,%l
d)
\n
"
,
ps
->
cClsidExclude
,
ps
->
lpClsidExclude
,
ps
->
nSelectedIndex
,
ps
->
fLink
,
ps
->
cClsidExclude
,
ps
->
lpClsidExclude
,
ps
->
nSelectedIndex
,
ps
->
fLink
,
ps
->
hMetaPict
,
ps
->
sizel
.
cx
,
ps
->
sizel
.
cy
);
ps
->
hMetaPict
,
ps
->
sizel
.
cx
,
ps
->
sizel
.
cy
);
for
(
i
=
0
;
i
<
ps
->
cPasteEntries
;
i
++
)
for
(
i
=
0
;
i
<
ps
->
cPasteEntries
;
i
++
)
{
{
TRACE
(
"arrPasteEntries[%d]: cFormat %08x pTargetDevice %p dwAspect %
d lindex %d tymed %
d
\n
"
,
TRACE
(
"arrPasteEntries[%d]: cFormat %08x pTargetDevice %p dwAspect %
ld lindex %ld tymed %l
d
\n
"
,
i
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
cfFormat
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
ptd
,
i
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
cfFormat
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
ptd
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
dwAspect
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
lindex
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
dwAspect
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
lindex
,
ps
->
arrPasteEntries
[
i
].
fmtetc
.
tymed
);
ps
->
arrPasteEntries
[
i
].
fmtetc
.
tymed
);
TRACE
(
"
\t
format name %s result text %s flags %04x
\n
"
,
debugstr_w
(
ps
->
arrPasteEntries
[
i
].
lpstrFormatName
),
TRACE
(
"
\t
format name %s result text %s flags %04
l
x
\n
"
,
debugstr_w
(
ps
->
arrPasteEntries
[
i
].
lpstrFormatName
),
debugstr_w
(
ps
->
arrPasteEntries
[
i
].
lpstrResultText
),
ps
->
arrPasteEntries
[
i
].
dwFlags
);
debugstr_w
(
ps
->
arrPasteEntries
[
i
].
lpstrResultText
),
ps
->
arrPasteEntries
[
i
].
dwFlags
);
}
}
for
(
i
=
0
;
i
<
ps
->
cLinkTypes
;
i
++
)
for
(
i
=
0
;
i
<
ps
->
cLinkTypes
;
i
++
)
...
@@ -228,7 +228,7 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps)
...
@@ -228,7 +228,7 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps)
/* The native version grabs only the first 20 fmts and we do the same */
/* The native version grabs only the first 20 fmts and we do the same */
hr
=
IEnumFORMATETC_Next
(
penum
,
ARRAY_SIZE
(
fmts
),
fmts
,
&
fetched
);
hr
=
IEnumFORMATETC_Next
(
penum
,
ARRAY_SIZE
(
fmts
),
fmts
,
&
fetched
);
TRACE
(
"got %
d formats hr %08
x
\n
"
,
fetched
,
hr
);
TRACE
(
"got %
ld formats hr %08l
x
\n
"
,
fetched
,
hr
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
...
@@ -271,7 +271,7 @@ static DWORD init_linklist(HWND hdlg, OLEUIPASTESPECIALW *ps)
...
@@ -271,7 +271,7 @@ static DWORD init_linklist(HWND hdlg, OLEUIPASTESPECIALW *ps)
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
supported_mask
|=
1
<<
link
;
supported_mask
|=
1
<<
link
;
}
}
TRACE
(
"supported_mask %02x
\n
"
,
supported_mask
);
TRACE
(
"supported_mask %02
l
x
\n
"
,
supported_mask
);
for
(
req_fmt
=
0
;
req_fmt
<
ps
->
cPasteEntries
;
req_fmt
++
)
for
(
req_fmt
=
0
;
req_fmt
<
ps
->
cPasteEntries
;
req_fmt
++
)
{
{
DWORD
linktypes
;
DWORD
linktypes
;
...
@@ -515,7 +515,7 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
...
@@ -515,7 +515,7 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
static
const
WCHAR
prop_name
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'_'
,
'S'
,
't'
,
'r'
,
'u'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
0
};
static
const
WCHAR
prop_name
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'_'
,
'S'
,
't'
,
'r'
,
'u'
,
'c'
,
't'
,
'u'
,
'r'
,
'e'
,
0
};
ps_struct_t
*
ps_struct
;
ps_struct_t
*
ps_struct
;
TRACE
(
"(%p, %04x, %08
lx, %08l
x)
\n
"
,
hdlg
,
msg
,
wp
,
lp
);
TRACE
(
"(%p, %04x, %08
Ix, %08I
x)
\n
"
,
hdlg
,
msg
,
wp
,
lp
);
ps_struct
=
GetPropW
(
hdlg
,
prop_name
);
ps_struct
=
GetPropW
(
hdlg
,
prop_name
);
...
...
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