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
095568df
Commit
095568df
authored
Nov 05, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove some superfluous casts of void pointers and zero.
parent
b7de2660
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
13 deletions
+13
-13
clipboard.c
dlls/ole32/clipboard.c
+2
-2
comcat.c
dlls/ole32/comcat.c
+2
-2
memlockbytes16.c
dlls/ole32/memlockbytes16.c
+1
-1
ole16.c
dlls/ole32/ole16.c
+1
-1
ole2.c
dlls/ole32/ole2.c
+4
-4
ole2_16.c
dlls/ole32/ole2_16.c
+1
-1
marshal.c
dlls/ole32/tests/marshal.c
+1
-1
moniker.c
dlls/ole32/tests/moniker.c
+1
-1
No files found.
dlls/ole32/clipboard.c
View file @
095568df
...
...
@@ -414,7 +414,7 @@ HRESULT WINAPI OleSetClipboard(IDataObject* pDataObj)
if (hDataObject==0)
HANDLE_ERROR( E_OUTOFMEMORY );
ppDataObject =
(OLEClipbrd**)
GlobalLock(hDataObject);
ppDataObject = GlobalLock(hDataObject);
*ppDataObject = theOleClipboard;
GlobalUnlock(hDataObject);
...
...
@@ -958,7 +958,7 @@ static HRESULT OLEClipbrd_RenderFormat(IDataObject *pIDataObject, LPFORMATETC pF
if
(
SUCCEEDED
(
hr
=
IDataObject_GetData
(
theOleClipboard
->
pIDataObjectSrc
,
&
fmt2
,
&
std2
)))
{
mfp
=
(
METAFILEPICT
*
)
GlobalLock
(
std2
.
u
.
hGlobal
);
mfp
=
GlobalLock
(
std2
.
u
.
hGlobal
);
}
if
(
mfp
)
...
...
dlls/ole32/comcat.c
View file @
095568df
...
...
@@ -181,7 +181,7 @@ static HRESULT COMCAT_GetCategoryDesc(HKEY key, LCID lcid, PWCHAR pszDesc,
FIXME
(
"Simplified lcid comparison
\n
"
);
return
CAT_E_NODESCRIPTION
;
}
pszDesc
[
size
/
sizeof
(
WCHAR
)]
=
(
WCHAR
)
0
;
pszDesc
[
size
/
sizeof
(
WCHAR
)]
=
0
;
return
S_OK
;
}
...
...
@@ -531,7 +531,7 @@ static HRESULT WINAPI COMCAT_ICatInformation_GetCategoryDesc(
if
(
res
!=
ERROR_SUCCESS
)
return
CAT_E_CATIDNOEXIST
;
/* Allocate a sensible amount of memory for the description. */
*
ppszDesc
=
(
PWCHAR
)
CoTaskMemAlloc
(
128
*
sizeof
(
WCHAR
));
*
ppszDesc
=
CoTaskMemAlloc
(
128
*
sizeof
(
WCHAR
));
if
(
*
ppszDesc
==
NULL
)
{
RegCloseKey
(
key
);
return
E_OUTOFMEMORY
;
...
...
dlls/ole32/memlockbytes16.c
View file @
095568df
...
...
@@ -193,7 +193,7 @@ HRESULT CDECL HGLOBALLockBytesImpl16_QueryInterface(
REFIID
riid
,
/* [in] */
void
**
ppvObject
)
/* [out][iid_is] (ptr to SEGPTR!) */
{
HGLOBALLockBytesImpl16
*
const
This
=
(
HGLOBALLockBytesImpl16
*
)
MapSL
((
SEGPTR
)
iface
);
HGLOBALLockBytesImpl16
*
const
This
=
MapSL
((
SEGPTR
)
iface
);
TRACE
(
"(%p,%s,%p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppvObject
);
/*
...
...
dlls/ole32/ole16.c
View file @
095568df
...
...
@@ -572,7 +572,7 @@ SEGPTR WINAPI CoMemAlloc(DWORD size, DWORD dwMemContext, DWORD x) {
TRACE
(
"(%d, 0x%08x, 0x%08x)
\n
"
,
size
,
dwMemContext
,
x
);
hres
=
_xmalloc16
(
size
,
&
segptr
);
if
(
hres
!=
S_OK
)
return
(
SEGPTR
)
0
;
return
0
;
return
segptr
;
}
...
...
dlls/ole32/ole2.c
View file @
095568df
...
...
@@ -1405,7 +1405,7 @@ static LRESULT CALLBACK OLEMenu_CallWndProc(INT code, WPARAM wParam, LPARAM lPar
goto
NEXTHOOK
;
/* Get the menu descriptor */
pOleMenuDescriptor
=
(
OleMenuDescriptor
*
)
GlobalLock
(
hOleMenu
);
pOleMenuDescriptor
=
GlobalLock
(
hOleMenu
);
if
(
!
pOleMenuDescriptor
)
/* Bad descriptor! */
goto
NEXTHOOK
;
...
...
@@ -1524,7 +1524,7 @@ static LRESULT CALLBACK OLEMenu_GetMsgProc(INT code, WPARAM wParam, LPARAM lPara
}
/* Get the menu descriptor */
pOleMenuDescriptor
=
(
OleMenuDescriptor
*
)
GlobalLock
(
hOleMenu
);
pOleMenuDescriptor
=
GlobalLock
(
hOleMenu
);
if
(
!
pOleMenuDescriptor
)
/* Bad descriptor! */
goto
NEXTHOOK
;
...
...
@@ -1579,7 +1579,7 @@ HOLEMENU WINAPI OleCreateMenuDescriptor(
sizeof
(
OleMenuDescriptor
)
)
)
)
return
0
;
pOleMenuDescriptor
=
(
OleMenuDescriptor
*
)
GlobalLock
(
hOleMenu
);
pOleMenuDescriptor
=
GlobalLock
(
hOleMenu
);
if
(
!
pOleMenuDescriptor
)
return
0
;
...
...
@@ -1664,7 +1664,7 @@ HRESULT WINAPI OleSetMenuDescriptor(
return
E_FAIL
;
/* Get the menu descriptor */
pOleMenuDescriptor
=
(
OleMenuDescriptor
*
)
GlobalLock
(
hOleMenu
);
pOleMenuDescriptor
=
GlobalLock
(
hOleMenu
);
if
(
!
pOleMenuDescriptor
)
return
E_UNEXPECTED
;
...
...
dlls/ole32/ole2_16.c
View file @
095568df
...
...
@@ -113,7 +113,7 @@ HGLOBAL16 WINAPI OleMetaFilePictFromIconAndLabel16(
hmf
=
CloseMetaFile
(
hdc
);
hmf16
=
GlobalAlloc16
(
0
,
sizeof
(
METAFILEPICT16
));
mf16
=
(
METAFILEPICT16
*
)
GlobalLock16
(
hmf16
);
mf16
=
GlobalLock16
(
hmf16
);
mf16
->
mm
=
MM_ANISOTROPIC
;
mf16
->
xExt
=
20
;
/* FIXME: bogus */
mf16
->
yExt
=
20
;
/* ditto */
...
...
dlls/ole32/tests/marshal.c
View file @
095568df
...
...
@@ -2052,7 +2052,7 @@ static void test_freethreadedmarshaldata(IStream *pStream, MSHCTX mshctx, void *
size
=
GlobalSize
(
hglobal
);
marshal_data
=
(
char
*
)
GlobalLock
(
hglobal
);
marshal_data
=
GlobalLock
(
hglobal
);
if
(
mshctx
==
MSHCTX_INPROC
)
{
...
...
dlls/ole32/tests/moniker.c
View file @
095568df
...
...
@@ -364,7 +364,7 @@ Moniker_GetDisplayName(IMoniker* iface, IBindCtx* pbc,
{
static
const
WCHAR
wszDisplayName
[]
=
{
'*'
,
'*'
,
'G'
,
'e'
,
'm'
,
'm'
,
'a'
,
0
};
CHECK_EXPECTED_METHOD
(
"Moniker_GetDisplayName"
);
*
ppszDisplayName
=
(
LPOLESTR
)
CoTaskMemAlloc
(
sizeof
(
wszDisplayName
));
*
ppszDisplayName
=
CoTaskMemAlloc
(
sizeof
(
wszDisplayName
));
memcpy
(
*
ppszDisplayName
,
wszDisplayName
,
sizeof
(
wszDisplayName
));
return
S_OK
;
}
...
...
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