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
51854091
Commit
51854091
authored
Jul 21, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove redundant variables.
parent
6fb39dfe
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
39 deletions
+13
-39
antimoniker.c
dlls/ole32/antimoniker.c
+5
-12
bindctx.c
dlls/ole32/bindctx.c
+3
-10
classmoniker.c
dlls/ole32/classmoniker.c
+1
-3
datacache.c
dlls/ole32/datacache.c
+1
-3
defaulthandler.c
dlls/ole32/defaulthandler.c
+1
-4
filemoniker.c
dlls/ole32/filemoniker.c
+2
-7
No files found.
dlls/ole32/antimoniker.c
View file @
51854091
...
...
@@ -192,13 +192,9 @@ AntiMonikerImpl_Load(IMoniker* iface,IStream* pStm)
static
HRESULT
WINAPI
AntiMonikerImpl_Save
(
IMoniker
*
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
)
{
DWORD
constant
=
1
;
HRESULT
res
;
static
const
DWORD
constant
=
1
;
/* data written by this function is only a DWORD constant set to 1 ! */
res
=
IStream_Write
(
pStm
,
&
constant
,
sizeof
(
constant
),
NULL
);
return
res
;
return
IStream_Write
(
pStm
,
&
constant
,
sizeof
(
constant
),
NULL
);
}
/******************************************************************************
...
...
@@ -614,9 +610,8 @@ static HRESULT AntiMonikerImpl_Construct(AntiMonikerImpl* This)
******************************************************************************/
HRESULT
WINAPI
CreateAntiMoniker
(
LPMONIKER
*
ppmk
)
{
AntiMonikerImpl
*
newAntiMoniker
=
0
;
HRESULT
hr
=
S_OK
;
IID
riid
=
IID_IMoniker
;
AntiMonikerImpl
*
newAntiMoniker
;
HRESULT
hr
;
TRACE
(
"(%p)
\n
"
,
ppmk
);
...
...
@@ -632,9 +627,7 @@ HRESULT WINAPI CreateAntiMoniker(LPMONIKER * ppmk)
return
hr
;
}
hr
=
AntiMonikerImpl_QueryInterface
((
IMoniker
*
)
newAntiMoniker
,
&
riid
,(
void
**
)
ppmk
);
return
hr
;
return
AntiMonikerImpl_QueryInterface
((
IMoniker
*
)
newAntiMoniker
,
&
IID_IMoniker
,(
void
**
)
ppmk
);
}
static
HRESULT
WINAPI
AntiMonikerCF_QueryInterface
(
LPCLASSFACTORY
iface
,
...
...
dlls/ole32/bindctx.c
View file @
51854091
...
...
@@ -285,8 +285,6 @@ BindCtxImpl_GetBindOptions(IBindCtx* iface,BIND_OPTS *pbindopts)
static
HRESULT
WINAPI
BindCtxImpl_GetRunningObjectTable
(
IBindCtx
*
iface
,
IRunningObjectTable
**
pprot
)
{
HRESULT
res
;
BindCtxImpl
*
This
=
(
BindCtxImpl
*
)
iface
;
TRACE
(
"(%p,%p)
\n
"
,
This
,
pprot
);
...
...
@@ -294,9 +292,7 @@ BindCtxImpl_GetRunningObjectTable(IBindCtx* iface,IRunningObjectTable** pprot)
if
(
pprot
==
NULL
)
return
E_POINTER
;
res
=
GetRunningObjectTable
(
0
,
pprot
);
return
res
;
return
GetRunningObjectTable
(
0
,
pprot
);
}
/******************************************************************************
...
...
@@ -555,9 +551,8 @@ static HRESULT BindCtxImpl_Construct(BindCtxImpl* This)
*/
HRESULT
WINAPI
CreateBindCtx
(
DWORD
reserved
,
LPBC
*
ppbc
)
{
BindCtxImpl
*
newBindCtx
=
0
;
BindCtxImpl
*
newBindCtx
;
HRESULT
hr
;
IID
riid
=
IID_IBindCtx
;
TRACE
(
"(%d,%p)
\n
"
,
reserved
,
ppbc
);
...
...
@@ -582,9 +577,7 @@ HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC * ppbc)
return
hr
;
}
hr
=
BindCtxImpl_QueryInterface
((
IBindCtx
*
)
newBindCtx
,
&
riid
,(
void
**
)
ppbc
);
return
hr
;
return
BindCtxImpl_QueryInterface
((
IBindCtx
*
)
newBindCtx
,
&
IID_IBindCtx
,(
void
**
)
ppbc
);
}
/******************************************************************************
...
...
dlls/ole32/classmoniker.c
View file @
51854091
...
...
@@ -210,9 +210,7 @@ static HRESULT WINAPI ClassMoniker_Save(IMoniker* iface,
hr
=
IStream_Write
(
pStm
,
&
This
->
clsid
,
sizeof
(
This
->
clsid
),
NULL
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IStream_Write
(
pStm
,
&
zero
,
sizeof
(
zero
),
NULL
);
return
hr
;
return
IStream_Write
(
pStm
,
&
zero
,
sizeof
(
zero
),
NULL
);
}
/******************************************************************************
...
...
dlls/ole32/datacache.c
View file @
51854091
...
...
@@ -655,17 +655,15 @@ static HRESULT DataCacheEntry_LoadData(DataCacheEntry *This)
static
HRESULT
DataCacheEntry_CreateStream
(
DataCacheEntry
*
This
,
IStorage
*
storage
,
IStream
**
stream
)
{
HRESULT
hr
;
WCHAR
wszName
[]
=
{
2
,
'O'
,
'l'
,
'e'
,
'P'
,
'r'
,
'e'
,
's'
,
'0'
+
(
This
->
stream_number
/
100
)
%
10
,
'0'
+
(
This
->
stream_number
/
10
)
%
10
,
'0'
+
This
->
stream_number
%
10
,
0
};
/* FIXME: cache the created stream in This? */
hr
=
IStorage_CreateStream
(
storage
,
wszName
,
return
IStorage_CreateStream
(
storage
,
wszName
,
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
|
STGM_CREATE
,
0
,
0
,
stream
);
return
hr
;
}
static
HRESULT
DataCacheEntry_Save
(
DataCacheEntry
*
This
,
IStorage
*
storage
,
...
...
dlls/ole32/defaulthandler.c
View file @
51854091
...
...
@@ -1146,14 +1146,11 @@ static HRESULT WINAPI DefaultHandler_EnumFormatEtc(
DWORD
dwDirection
,
IEnumFORMATETC
**
ppenumFormatEtc
)
{
HRESULT
hres
;
DefaultHandler
*
This
=
impl_from_IDataObject
(
iface
);
TRACE
(
"(%p, %x, %p)
\n
"
,
iface
,
dwDirection
,
ppenumFormatEtc
);
hres
=
OleRegEnumFormatEtc
(
&
This
->
clsid
,
dwDirection
,
ppenumFormatEtc
);
return
hres
;
return
OleRegEnumFormatEtc
(
&
This
->
clsid
,
dwDirection
,
ppenumFormatEtc
);
}
/************************************************************************
...
...
dlls/ole32/filemoniker.c
View file @
51854091
...
...
@@ -421,10 +421,7 @@ FileMonikerImpl_Save(IMoniker* iface, IStream* pStm, BOOL fClearDirty)
}
if
(
!
bWriteWide
)
{
res
=
IStream_Write
(
pStm
,
&
ZERO
,
sizeof
(
DWORD
),
NULL
);
return
res
;
}
return
IStream_Write
(
pStm
,
&
ZERO
,
sizeof
(
DWORD
),
NULL
);
/* write bytes needed for the filepathW (without 0) + 6 */
bytesW
=
len
*
sizeof
(
WCHAR
)
+
6
;
...
...
@@ -441,9 +438,7 @@ FileMonikerImpl_Save(IMoniker* iface, IStream* pStm, BOOL fClearDirty)
if
(
FAILED
(
res
))
return
res
;
/* write W string (no 0) */
res
=
IStream_Write
(
pStm
,
filePathW
,
bytesW
,
NULL
);
return
res
;
return
IStream_Write
(
pStm
,
filePathW
,
bytesW
,
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