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
3ac0983a
Commit
3ac0983a
authored
Jul 11, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove unneeded address-of operators from array names.
parent
749184a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
olepicture.c
dlls/oleaut32/olepicture.c
+3
-3
typelib.c
dlls/oleaut32/typelib.c
+1
-1
typelib2.c
dlls/oleaut32/typelib2.c
+2
-2
No files found.
dlls/oleaut32/olepicture.c
View file @
3ac0983a
...
...
@@ -1845,7 +1845,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
TRACE
(
"Reading all data from stream.
\n
"
);
xbuf
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
origsize
);
if
(
headerisdata
)
memcpy
(
xbuf
,
&
header
,
8
);
memcpy
(
xbuf
,
header
,
8
);
while
(
1
)
{
while
(
xread
<
origsize
)
{
hr
=
IStream_Read
(
pStm
,
xbuf
+
xread
,
origsize
-
xread
,
&
nread
);
...
...
@@ -1871,7 +1871,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
xbuf
=
This
->
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
datalen
);
if
(
headerisdata
)
memcpy
(
xbuf
,
&
header
,
8
);
memcpy
(
xbuf
,
header
,
8
);
while
(
xread
<
This
->
datalen
)
{
ULONG
nread
;
...
...
@@ -1927,7 +1927,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
FIXME
(
"Unknown magic %04x, %d read bytes:
\n
"
,
magic
,
xread
);
hr
=
E_FAIL
;
for
(
i
=
0
;
i
<
xread
+
8
;
i
++
)
{
if
(
i
<
8
)
MESSAGE
(
"%02x "
,((
unsigned
char
*
)
&
header
)[
i
]);
if
(
i
<
8
)
MESSAGE
(
"%02x "
,((
unsigned
char
*
)
header
)[
i
]);
else
MESSAGE
(
"%02x "
,
xbuf
[
i
-
8
]);
if
(
i
%
10
==
9
)
MESSAGE
(
"
\n
"
);
}
...
...
dlls/oleaut32/typelib.c
View file @
3ac0983a
...
...
@@ -2989,7 +2989,7 @@ static sltg_ref_lookup_t *SLTG_DoRefs(SLTG_RefInfo *pRef, ITypeLibImpl *pTL,
FIXME
(
"Ref magic = %x
\n
"
,
pRef
->
magic
);
return
NULL
;
}
name
=
(
(
char
*
)
(
&
pRef
->
names
)
+
pRef
->
number
);
name
=
(
(
char
*
)
pRef
->
names
+
pRef
->
number
);
table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
table
)
+
((
pRef
->
number
>>
3
)
-
1
)
*
sizeof
(
table
->
refs
[
0
]));
table
->
num
=
pRef
->
number
>>
3
;
...
...
dlls/oleaut32/typelib2.c
View file @
3ac0983a
...
...
@@ -728,7 +728,7 @@ static int ctl2_alloc_importfile(
importfile
->
guid
=
guidoffset
;
importfile
->
lcid
=
This
->
typelib_header
.
lcid2
;
importfile
->
version
=
major_version
|
(
minor_version
<<
16
);
memcpy
(
&
importfile
->
filename
,
encoded_string
,
length
);
memcpy
(
importfile
->
filename
,
encoded_string
,
length
);
return
offset
;
}
...
...
@@ -3336,7 +3336,7 @@ static HRESULT WINAPI ICreateTypeLib2_fnSaveAllChanges(ICreateTypeLib2 * iface)
if
(
This
->
typelib_header
.
varflags
&
HELPDLLFLAG
)
if
(
!
ctl2_write_chunk
(
hFile
,
&
This
->
helpStringDll
,
sizeof
(
This
->
helpStringDll
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
hFile
,
This
->
typelib_typeinfo_offsets
,
This
->
typelib_header
.
nrtypeinfos
*
4
))
return
retval
;
if
(
!
ctl2_write_chunk
(
hFile
,
&
This
->
typelib_segdir
,
sizeof
(
This
->
typelib_segdir
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
hFile
,
This
->
typelib_segdir
,
sizeof
(
This
->
typelib_segdir
)))
return
retval
;
if
(
!
ctl2_write_segment
(
This
,
hFile
,
MSFT_SEG_TYPEINFO
))
return
retval
;
if
(
!
ctl2_write_segment
(
This
,
hFile
,
MSFT_SEG_GUIDHASH
))
return
retval
;
if
(
!
ctl2_write_segment
(
This
,
hFile
,
MSFT_SEG_GUID
))
return
retval
;
...
...
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