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
554644fd
Commit
554644fd
authored
Jan 14, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove unneeded casts.
parent
5c8aa891
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
24 deletions
+14
-24
clipboard.c
dlls/ole32/clipboard.c
+1
-1
git.c
dlls/ole32/git.c
+2
-2
ole16.c
dlls/ole32/ole16.c
+1
-1
ole2.c
dlls/ole32/ole2.c
+2
-2
stg_prop.c
dlls/ole32/stg_prop.c
+5
-5
storage32.c
dlls/ole32/storage32.c
+3
-13
No files found.
dlls/ole32/clipboard.c
View file @
554644fd
...
...
@@ -1273,7 +1273,7 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_GetData(
* Return the clipboard data in the storage medium structure
*/
pmedium
->
tymed
=
(
hData
==
0
)
?
TYMED_NULL
:
TYMED_HGLOBAL
;
pmedium
->
u
.
hGlobal
=
(
HGLOBAL
)
hData
;
pmedium
->
u
.
hGlobal
=
hData
;
pmedium
->
pUnkForRelease
=
NULL
;
hr
=
S_OK
;
...
...
dlls/ole32/git.c
View file @
554644fd
...
...
@@ -104,7 +104,7 @@ StdGlobalInterfaceTable_FindEntry(IGlobalInterfaceTable* iface, DWORD cookie)
StdGlobalInterfaceTableImpl
*
const
self
=
(
StdGlobalInterfaceTableImpl
*
)
iface
;
StdGITEntry
*
e
;
TRACE
(
"iface=%p, cookie=0x%x
\n
"
,
iface
,
(
UINT
)
cookie
);
TRACE
(
"iface=%p, cookie=0x%x
\n
"
,
iface
,
cookie
);
LIST_FOR_EACH_ENTRY
(
e
,
&
self
->
list
,
StdGITEntry
,
entry
)
{
if
(
e
->
cookie
==
cookie
)
...
...
@@ -227,7 +227,7 @@ StdGlobalInterfaceTable_RevokeInterfaceFromGlobal(
StdGITEntry
*
entry
;
HRESULT
hr
;
TRACE
(
"iface=%p, dwCookie=0x%x
\n
"
,
iface
,
(
UINT
)
dwCookie
);
TRACE
(
"iface=%p, dwCookie=0x%x
\n
"
,
iface
,
dwCookie
);
EnterCriticalSection
(
&
git_section
);
...
...
dlls/ole32/ole16.c
View file @
554644fd
...
...
@@ -154,7 +154,7 @@ DWORD CDECL IMalloc16_fnGetSize(IMalloc16* iface,SEGPTR pv)
* IMalloc16_DidAlloc [COMPOBJ.507]
*/
INT16
CDECL
IMalloc16_fnDidAlloc
(
IMalloc16
*
iface
,
LPVOID
pv
)
{
IMalloc16
*
This
=
(
IMalloc16
*
)
iface
;
IMalloc16
*
This
=
iface
;
TRACE
(
"(%p)->DidAlloc(%p)
\n
"
,
This
,
pv
);
return
(
INT16
)
-
1
;
}
...
...
dlls/ole32/ole2.c
View file @
554644fd
...
...
@@ -1400,7 +1400,7 @@ static LRESULT CALLBACK OLEMenu_CallWndProc(INT code, WPARAM wParam, LPARAM lPar
* If the window has an OLEMenu property we may need to dispatch
* the menu message to its active objects window instead. */
hOleMenu
=
(
HOLEMENU
)
GetPropA
(
pMsg
->
hwnd
,
"PROP_OLEMenuDescriptor"
);
hOleMenu
=
GetPropA
(
pMsg
->
hwnd
,
"PROP_OLEMenuDescriptor"
);
if
(
!
hOleMenu
)
goto
NEXTHOOK
;
...
...
@@ -1505,7 +1505,7 @@ static LRESULT CALLBACK OLEMenu_GetMsgProc(INT code, WPARAM wParam, LPARAM lPara
* If the window has an OLEMenu property we may need to dispatch
* the menu message to its active objects window instead. */
hOleMenu
=
(
HOLEMENU
)
GetPropA
(
pMsg
->
hwnd
,
"PROP_OLEMenuDescriptor"
);
hOleMenu
=
GetPropA
(
pMsg
->
hwnd
,
"PROP_OLEMenuDescriptor"
);
if
(
!
hOleMenu
)
goto
NEXTHOOK
;
...
...
dlls/ole32/stg_prop.c
View file @
554644fd
...
...
@@ -200,7 +200,7 @@ static HRESULT WINAPI IPropertyStorage_fnQueryInterface(
IsEqualGUID
(
&
IID_IPropertyStorage
,
riid
))
{
IPropertyStorage_AddRef
(
iface
);
*
ppvObject
=
(
IPropertyStorage
*
)
iface
;
*
ppvObject
=
iface
;
return
S_OK
;
}
...
...
@@ -263,7 +263,7 @@ static PROPVARIANT *PropertyStorage_FindPropertyByName(
if
(
This
->
codePage
==
CP_UNICODE
)
{
if
(
dictionary_find
(
This
->
name_to_propid
,
name
,
(
void
**
)
&
propid
))
ret
=
PropertyStorage_FindProperty
(
This
,
(
PROPID
)
propid
);
ret
=
PropertyStorage_FindProperty
(
This
,
propid
);
}
else
{
...
...
@@ -275,7 +275,7 @@ static PROPVARIANT *PropertyStorage_FindPropertyByName(
{
if
(
dictionary_find
(
This
->
name_to_propid
,
ansiName
,
(
void
**
)
&
propid
))
ret
=
PropertyStorage_FindProperty
(
This
,
(
PROPID
)
propid
);
ret
=
PropertyStorage_FindProperty
(
This
,
propid
);
CoTaskMemFree
(
ansiName
);
}
}
...
...
@@ -528,7 +528,7 @@ static HRESULT PropertyStorage_StoreNameWithId(PropertyStorage_impl *This,
assert
(
srcName
);
hr
=
PropertyStorage_StringCopy
(
(
LPCSTR
)
srcName
,
cp
,
&
name
,
This
->
codePage
);
hr
=
PropertyStorage_StringCopy
(
srcName
,
cp
,
&
name
,
This
->
codePage
);
if
(
SUCCEEDED
(
hr
))
{
if
(
This
->
codePage
==
CP_UNICODE
)
...
...
@@ -1059,7 +1059,7 @@ static HRESULT PropertyStorage_ReadProperty(PropertyStorage_impl *This,
TRACE
(
"Read char 0x%x ('%c')
\n
"
,
prop
->
u
.
cVal
,
prop
->
u
.
cVal
);
break
;
case
VT_UI1
:
prop
->
u
.
bVal
=
*
(
const
UCHAR
*
)
data
;
prop
->
u
.
bVal
=
*
data
;
TRACE
(
"Read byte 0x%x
\n
"
,
prop
->
u
.
bVal
);
break
;
case
VT_I2
:
...
...
dlls/ole32/storage32.c
View file @
554644fd
...
...
@@ -1300,14 +1300,7 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
/*
* Open it to get a pointer to return.
*/
hr
=
IStorage_OpenStorage
(
iface
,
(
const
OLECHAR
*
)
pwcsName
,
0
,
grfMode
,
0
,
0
,
ppstg
);
hr
=
IStorage_OpenStorage
(
iface
,
pwcsName
,
0
,
grfMode
,
0
,
0
,
ppstg
);
if
(
(
hr
!=
S_OK
)
||
(
*
ppstg
==
NULL
))
{
...
...
@@ -2004,9 +1997,7 @@ static HRESULT deleteStorageProperty(
hr
=
IEnumSTATSTG_Next
(
elements
,
1
,
&
currentElement
,
NULL
);
if
(
hr
==
S_OK
)
{
destroyHr
=
StorageImpl_DestroyElement
(
(
IStorage
*
)
childStorage
,
(
OLECHAR
*
)
currentElement
.
pwcsName
);
destroyHr
=
StorageImpl_DestroyElement
(
childStorage
,
currentElement
.
pwcsName
);
CoTaskMemFree
(
currentElement
.
pwcsName
);
}
...
...
@@ -4053,8 +4044,7 @@ static ULONG IEnumSTATSTGImpl_FindProperty(
currentProperty
);
if
(
propertyNameCmp
(
(
const
OLECHAR
*
)
currentProperty
->
name
,
(
const
OLECHAR
*
)
lpszPropName
)
==
0
)
(
const
OLECHAR
*
)
currentProperty
->
name
,
lpszPropName
)
==
0
)
return
currentSearchNode
;
/*
...
...
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