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
3cb4ab58
Commit
3cb4ab58
authored
Mar 31, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename a few variables and remove a couple of meaningless comments.
parent
f2ba37e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
clipboard.c
dlls/ole32/clipboard.c
+10
-15
No files found.
dlls/ole32/clipboard.c
View file @
3cb4ab58
...
...
@@ -539,31 +539,30 @@ static HRESULT render_embed_source_hack(IDataObject *data, LPFORMATETC fmt)
}
/***********************************************************************
* OLEClipbrd_RenderFormat(LPFORMATETC)
* render_format
*
* Render the clipboard data. Note that this call will delegate to the
* source data object.
* Note: This function assumes it is passed an HGLOBAL format to render.
*/
static
HRESULT
OLEClipbrd_RenderFormat
(
IDataObject
*
pIDataObject
,
LPFORMATETC
pFormatetc
)
static
HRESULT
render_format
(
IDataObject
*
data
,
LPFORMATETC
fmt
)
{
STGMEDIUM
std
;
HGLOBAL
hDup
;
HRESULT
hr
;
/* Embed source hack */
if
(
pFormatetc
->
cfFormat
==
embed_source_clipboard_format
)
if
(
fmt
->
cfFormat
==
embed_source_clipboard_format
)
{
return
render_embed_source_hack
(
pIDataObject
,
pFormatetc
);
return
render_embed_source_hack
(
data
,
fmt
);
}
if
(
FAILED
(
hr
=
IDataObject_GetData
(
pIDataObject
,
pFormatetc
,
&
std
)))
if
(
FAILED
(
hr
=
IDataObject_GetData
(
data
,
fmt
,
&
std
)))
{
WARN
(
"() : IDataObject_GetData failed to render clipboard data! (%x)
\n
"
,
hr
);
return
hr
;
}
/* To put a copy back on the clipboard */
if
(
std
.
tymed
!=
TYMED_HGLOBAL
)
{
FIXME
(
"got tymed %x
\n
"
,
std
.
tymed
);
...
...
@@ -571,17 +570,13 @@ static HRESULT OLEClipbrd_RenderFormat(IDataObject *pIDataObject, LPFORMATETC pF
goto
end
;
}
/*
* Put a copy of the rendered data back on the clipboard
*/
if
(
!
(
hDup
=
OLEClipbrd_GlobalDupMem
(
std
.
u
.
hGlobal
))
)
{
hr
=
E_OUTOFMEMORY
;
goto
end
;
}
if
(
!
SetClipboardData
(
pFormatetc
->
cfFormat
,
hDup
)
)
if
(
!
SetClipboardData
(
fmt
->
cfFormat
,
hDup
)
)
{
WARN
(
"() : Failed to set rendered clipboard data into clipboard!
\n
"
);
GlobalFree
(
hDup
);
...
...
@@ -638,7 +633,7 @@ static LRESULT CALLBACK OLEClipbrd_WndProc
* Render the clipboard data.
* (We must have a source data object or we wouldn't be in this WndProc)
*/
OLEClipbrd_RenderF
ormat
(
(
IDataObject
*
)
&
(
theOleClipboard
->
lpvtbl
),
&
rgelt
);
render_f
ormat
(
(
IDataObject
*
)
&
(
theOleClipboard
->
lpvtbl
),
&
rgelt
);
break
;
}
...
...
@@ -678,7 +673,7 @@ static LRESULT CALLBACK OLEClipbrd_WndProc
/*
* Render the clipboard data.
*/
if
(
FAILED
(
OLEClipbrd_RenderF
ormat
(
(
IDataObject
*
)
&
(
theOleClipboard
->
lpvtbl
),
&
rgelt
))
)
if
(
FAILED
(
render_f
ormat
(
(
IDataObject
*
)
&
(
theOleClipboard
->
lpvtbl
),
&
rgelt
))
)
continue
;
TRACE
(
"(): WM_RENDERALLFORMATS(cfFormat=%d)
\n
"
,
rgelt
.
cfFormat
);
...
...
@@ -1512,7 +1507,7 @@ HRESULT WINAPI OleFlushClipboard(void)
GetClipboardFormatNameA
(
rgelt
.
cfFormat
,
szFmtName
,
sizeof
(
szFmtName
)
-
1
)
?
szFmtName
:
""
);
if
(
FAILED
(
OLEClipbrd_RenderF
ormat
(
theOleClipboard
->
pIDataObjectSrc
,
&
rgelt
))
)
if
(
FAILED
(
render_f
ormat
(
theOleClipboard
->
pIDataObjectSrc
,
&
rgelt
))
)
continue
;
}
}
...
...
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