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
12139643
Commit
12139643
authored
Mar 26, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename a variable.
parent
d93688a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
clipboard.c
dlls/ole32/clipboard.c
+12
-11
No files found.
dlls/ole32/clipboard.c
View file @
12139643
...
...
@@ -156,7 +156,7 @@ typedef struct enum_fmtetc
const
IEnumFORMATETCVtbl
*
lpVtbl
;
LONG
ref
;
UINT
posFmt
;
/* current enumerator position */
UINT
pos
;
/* current enumerator position */
UINT
countFmt
;
/* number of EnumFORMATETC's in array */
LPFORMATETC
pFmt
;
/* array of EnumFORMATETC's */
...
...
@@ -261,19 +261,19 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Next
UINT
cfetch
;
HRESULT
hres
=
S_FALSE
;
TRACE
(
"(%p)->(pos=%u)
\n
"
,
This
,
This
->
pos
Fmt
);
TRACE
(
"(%p)->(pos=%u)
\n
"
,
This
,
This
->
pos
);
if
(
This
->
pos
Fmt
<
This
->
countFmt
)
if
(
This
->
pos
<
This
->
countFmt
)
{
cfetch
=
This
->
countFmt
-
This
->
pos
Fmt
;
cfetch
=
This
->
countFmt
-
This
->
pos
;
if
(
cfetch
>=
celt
)
{
cfetch
=
celt
;
hres
=
S_OK
;
}
memcpy
(
rgelt
,
&
This
->
pFmt
[
This
->
pos
Fmt
],
cfetch
*
sizeof
(
FORMATETC
));
This
->
pos
Fmt
+=
cfetch
;
memcpy
(
rgelt
,
&
This
->
pFmt
[
This
->
pos
],
cfetch
*
sizeof
(
FORMATETC
));
This
->
pos
+=
cfetch
;
}
else
{
...
...
@@ -298,10 +298,10 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Skip(LPENUMFORMATETC iface, ULON
enum_fmtetc
*
This
=
impl_from_IEnumFORMATETC
(
iface
);
TRACE
(
"(%p)->(num=%u)
\n
"
,
This
,
celt
);
This
->
pos
Fmt
+=
celt
;
if
(
This
->
pos
Fmt
>
This
->
countFmt
)
This
->
pos
+=
celt
;
if
(
This
->
pos
>
This
->
countFmt
)
{
This
->
pos
Fmt
=
This
->
countFmt
;
This
->
pos
=
This
->
countFmt
;
return
S_FALSE
;
}
return
S_OK
;
...
...
@@ -317,7 +317,7 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Reset(LPENUMFORMATETC iface)
enum_fmtetc
*
This
=
impl_from_IEnumFORMATETC
(
iface
);
TRACE
(
"(%p)->()
\n
"
,
This
);
This
->
pos
Fmt
=
0
;
This
->
pos
=
0
;
return
S_OK
;
}
...
...
@@ -344,6 +344,7 @@ static HRESULT WINAPI OLEClipbrd_IEnumFORMATETC_Clone
This
->
pFmt
,
This
->
pUnkDataObj
);
/* FIXME: This is wrong! */
if
(
FAILED
(
hr
=
IEnumFORMATETC_AddRef
(
*
ppenum
)))
return
(
hr
);
...
...
@@ -383,7 +384,7 @@ static LPENUMFORMATETC OLEClipbrd_IEnumFORMATETC_Construct(UINT cfmt, const FORM
ef
->
lpVtbl
=
&
efvt
;
ef
->
pUnkDataObj
=
pUnkDataObj
;
ef
->
pos
Fmt
=
0
;
ef
->
pos
=
0
;
ef
->
countFmt
=
cfmt
;
ef
->
pFmt
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
ef
->
pFmt
)
...
...
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