Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f082e4f2
Commit
f082e4f2
authored
Jul 14, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Use nameless unions/structs.
parent
1ce80d35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
pastespl.c
dlls/oledlg/pastespl.c
+6
-7
No files found.
dlls/oledlg/pastespl.c
View file @
f082e4f2
...
...
@@ -19,7 +19,6 @@
*/
#define COBJMACROS
#define NONAMELESSUNION
#include <stdarg.h>
...
...
@@ -139,7 +138,7 @@ static void get_descriptors(HWND hdlg, ps_struct_t *ps_struct)
fmtetc
.
cfFormat
=
cf_object_descriptor
;
if
(
IDataObject_GetData
(
ps_struct
->
ps
->
lpSrcDataObj
,
&
fmtetc
,
&
stg
)
==
S_OK
)
{
OBJECTDESCRIPTOR
*
obj_desc
=
GlobalLock
(
stg
.
u
.
hGlobal
);
OBJECTDESCRIPTOR
*
obj_desc
=
GlobalLock
(
stg
.
hGlobal
);
if
(
obj_desc
->
dwSrcOfCopy
)
ps_struct
->
source_name
=
wcsdup
((
WCHAR
*
)((
char
*
)
obj_desc
+
obj_desc
->
dwSrcOfCopy
));
if
(
obj_desc
->
dwFullUserTypeName
)
...
...
@@ -147,8 +146,8 @@ static void get_descriptors(HWND hdlg, ps_struct_t *ps_struct)
OleRegGetUserType
(
&
obj_desc
->
clsid
,
USERCLASSTYPE_APPNAME
,
&
ps_struct
->
app_name
);
/* Get the icon here. If dwDrawAspect & DVASCPECT_ICON call GetData(CF_METAFILEPICT), otherwise
native calls OleGetIconFromClass(obj_desc->clsid) */
GlobalUnlock
(
stg
.
u
.
hGlobal
);
GlobalFree
(
stg
.
u
.
hGlobal
);
GlobalUnlock
(
stg
.
hGlobal
);
GlobalFree
(
stg
.
hGlobal
);
}
else
{
...
...
@@ -158,13 +157,13 @@ static void get_descriptors(HWND hdlg, ps_struct_t *ps_struct)
fmtetc
.
cfFormat
=
cf_link_src_descriptor
;
if
(
IDataObject_GetData
(
ps_struct
->
ps
->
lpSrcDataObj
,
&
fmtetc
,
&
stg
)
==
S_OK
)
{
OBJECTDESCRIPTOR
*
obj_desc
=
GlobalLock
(
stg
.
u
.
hGlobal
);
OBJECTDESCRIPTOR
*
obj_desc
=
GlobalLock
(
stg
.
hGlobal
);
if
(
obj_desc
->
dwSrcOfCopy
)
ps_struct
->
link_source_name
=
wcsdup
((
WCHAR
*
)((
char
*
)
obj_desc
+
obj_desc
->
dwSrcOfCopy
));
if
(
obj_desc
->
dwFullUserTypeName
)
ps_struct
->
link_type_name
=
wcsdup
((
WCHAR
*
)((
char
*
)
obj_desc
+
obj_desc
->
dwFullUserTypeName
));
GlobalUnlock
(
stg
.
u
.
hGlobal
);
GlobalFree
(
stg
.
u
.
hGlobal
);
GlobalUnlock
(
stg
.
hGlobal
);
GlobalFree
(
stg
.
hGlobal
);
}
if
(
ps_struct
->
source_name
==
NULL
&&
ps_struct
->
link_source_name
==
NULL
)
...
...
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