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
749184a1
Commit
749184a1
authored
Jul 11, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove unneeded address-of operators from array names.
parent
741b65c2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
moniker.c
dlls/ole32/moniker.c
+5
-5
rpc.c
dlls/ole32/rpc.c
+1
-1
stg_prop.c
dlls/ole32/stg_prop.c
+1
-1
storage32.c
dlls/ole32/storage32.c
+2
-2
stubmanager.c
dlls/ole32/stubmanager.c
+1
-1
No files found.
dlls/ole32/moniker.c
View file @
749184a1
...
...
@@ -464,7 +464,7 @@ RunningObjectTableImpl_Register(IRunningObjectTable* iface, DWORD grfFlags,
const
void
*
pv
=
GlobalLock
(
hglobal
);
rot_entry
->
object
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
MInterfacePointer
,
abData
[
size
]));
rot_entry
->
object
->
ulCntData
=
size
;
memcpy
(
&
rot_entry
->
object
->
abData
,
pv
,
size
);
memcpy
(
rot_entry
->
object
->
abData
,
pv
,
size
);
GlobalUnlock
(
hglobal
);
}
}
...
...
@@ -530,7 +530,7 @@ RunningObjectTableImpl_Register(IRunningObjectTable* iface, DWORD grfFlags,
const
void
*
pv
=
GlobalLock
(
hglobal
);
moniker
=
HeapAlloc
(
GetProcessHeap
(),
0
,
FIELD_OFFSET
(
InterfaceData
,
abData
[
size
]));
moniker
->
ulCntData
=
size
;
memcpy
(
&
moniker
->
abData
,
pv
,
size
);
memcpy
(
moniker
->
abData
,
pv
,
size
);
GlobalUnlock
(
hglobal
);
}
}
...
...
@@ -642,7 +642,7 @@ RunningObjectTableImpl_IsRunning( IRunningObjectTable* iface, IMoniker *pmkObjec
LIST_FOR_EACH_ENTRY
(
rot_entry
,
&
This
->
rot
,
const
struct
rot_entry
,
entry
)
{
if
((
rot_entry
->
moniker_data
->
ulCntData
==
moniker_data
->
ulCntData
)
&&
!
memcmp
(
&
moniker_data
->
abData
,
&
rot_entry
->
moniker_data
->
abData
,
moniker_data
->
ulCntData
))
!
memcmp
(
moniker_data
->
abData
,
rot_entry
->
moniker_data
->
abData
,
moniker_data
->
ulCntData
))
{
hr
=
S_OK
;
break
;
...
...
@@ -714,7 +714,7 @@ RunningObjectTableImpl_GetObject( IRunningObjectTable* iface,
LIST_FOR_EACH_ENTRY
(
rot_entry
,
&
This
->
rot
,
struct
rot_entry
,
entry
)
{
if
((
rot_entry
->
moniker_data
->
ulCntData
==
moniker_data
->
ulCntData
)
&&
!
memcmp
(
&
moniker_data
->
abData
,
&
rot_entry
->
moniker_data
->
abData
,
moniker_data
->
ulCntData
))
!
memcmp
(
moniker_data
->
abData
,
rot_entry
->
moniker_data
->
abData
,
moniker_data
->
ulCntData
))
{
IStream
*
pStream
;
hr
=
create_stream_on_mip_ro
(
rot_entry
->
object
,
&
pStream
);
...
...
@@ -860,7 +860,7 @@ RunningObjectTableImpl_GetTimeOfLastChange(IRunningObjectTable* iface,
LIST_FOR_EACH_ENTRY
(
rot_entry
,
&
This
->
rot
,
const
struct
rot_entry
,
entry
)
{
if
((
rot_entry
->
moniker_data
->
ulCntData
==
moniker_data
->
ulCntData
)
&&
!
memcmp
(
&
moniker_data
->
abData
,
&
rot_entry
->
moniker_data
->
abData
,
moniker_data
->
ulCntData
))
!
memcmp
(
moniker_data
->
abData
,
rot_entry
->
moniker_data
->
abData
,
moniker_data
->
ulCntData
))
{
*
pfiletime
=
rot_entry
->
last_modified
;
hr
=
S_OK
;
...
...
dlls/ole32/rpc.c
View file @
749184a1
...
...
@@ -1584,7 +1584,7 @@ HRESULT RPC_ResolveOxid(OXID oxid, OXID_INFO *oxid_info)
oxid_info
->
ipidRemUnknown
.
Data1
=
0xffffffff
;
oxid_info
->
ipidRemUnknown
.
Data2
=
0xffff
;
oxid_info
->
ipidRemUnknown
.
Data3
=
0xffff
;
memcpy
(
&
oxid_info
->
ipidRemUnknown
.
Data4
,
&
oxid
,
sizeof
(
OXID
));
memcpy
(
oxid_info
->
ipidRemUnknown
.
Data4
,
&
oxid
,
sizeof
(
OXID
));
oxid_info
->
psa
=
NULL
/* FIXME */
;
return
S_OK
;
...
...
dlls/ole32/stg_prop.c
View file @
749184a1
...
...
@@ -1717,7 +1717,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
len
=
var
->
u
.
pclipdata
->
cbSize
;
StorageUtl_WriteDWord
((
LPBYTE
)
&
cf_hdr
[
0
],
0
,
len
+
8
);
StorageUtl_WriteDWord
((
LPBYTE
)
&
cf_hdr
[
1
],
0
,
var
->
u
.
pclipdata
->
ulClipFmt
);
hr
=
IStream_Write
(
This
->
stm
,
&
cf_hdr
,
sizeof
(
cf_hdr
),
&
count
);
hr
=
IStream_Write
(
This
->
stm
,
cf_hdr
,
sizeof
(
cf_hdr
),
&
count
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
IStream_Write
(
This
->
stm
,
&
var
->
u
.
pclipdata
->
pClipData
,
len
,
&
count
);
...
...
dlls/ole32/storage32.c
View file @
749184a1
...
...
@@ -7237,8 +7237,8 @@ HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName
/* Initialize the CompObj structure */
memset
(
&
IStorageCompObj
,
0
,
sizeof
(
IStorageCompObj
));
memcpy
(
&
(
IStorageCompObj
.
byUnknown1
)
,
pCompObjUnknown1
,
sizeof
(
pCompObjUnknown1
));
memcpy
(
&
(
IStorageCompObj
.
byUnknown2
)
,
pCompObjUnknown2
,
sizeof
(
pCompObjUnknown2
));
memcpy
(
IStorageCompObj
.
byUnknown1
,
pCompObjUnknown1
,
sizeof
(
pCompObjUnknown1
));
memcpy
(
IStorageCompObj
.
byUnknown2
,
pCompObjUnknown2
,
sizeof
(
pCompObjUnknown2
));
/* Create a CompObj stream if it doesn't exist */
...
...
dlls/ole32/stubmanager.c
View file @
749184a1
...
...
@@ -84,7 +84,7 @@ struct stub_manager *new_stub_manager(APARTMENT *apt, IUnknown *object)
sm
->
oxid_info
.
ipidRemUnknown
.
Data2
=
0xffff
;
sm
->
oxid_info
.
ipidRemUnknown
.
Data3
=
0xffff
;
assert
(
sizeof
(
sm
->
oxid_info
.
ipidRemUnknown
.
Data4
)
==
sizeof
(
apt
->
oxid
));
memcpy
(
&
sm
->
oxid_info
.
ipidRemUnknown
.
Data4
,
&
apt
->
oxid
,
sizeof
(
OXID
));
memcpy
(
sm
->
oxid_info
.
ipidRemUnknown
.
Data4
,
&
apt
->
oxid
,
sizeof
(
OXID
));
sm
->
oxid_info
.
dwAuthnHint
=
RPC_C_AUTHN_LEVEL_NONE
;
sm
->
oxid_info
.
psa
=
NULL
/* FIXME */
;
...
...
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