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
16e9c359
Commit
16e9c359
authored
Jul 26, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Constify some variables.
parent
e1347ecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
typelib2.c
dlls/oleaut32/typelib2.c
+4
-4
No files found.
dlls/oleaut32/typelib2.c
View file @
16e9c359
...
...
@@ -322,7 +322,7 @@ static int ctl2_find_guid(
*/
static
int
ctl2_find_name
(
ICreateTypeLib2Impl
*
This
,
/* [I] The typelib to operate against. */
c
har
*
name
)
/* [I] The encoded name to find. */
c
onst
char
*
name
)
/* [I] The encoded name to find. */
{
int
offset
;
int
*
namestruct
;
...
...
@@ -331,7 +331,7 @@ static int ctl2_find_name(
while
(
offset
!=
-
1
)
{
namestruct
=
(
int
*
)
&
This
->
typelib_segment_data
[
MSFT_SEG_NAME
][
offset
];
if
(
!
((
namestruct
[
2
]
^
*
((
int
*
)
name
))
&
0xffff00ff
))
{
if
(
!
((
namestruct
[
2
]
^
*
((
const
int
*
)
name
))
&
0xffff00ff
))
{
/* hash codes and lengths match, final test */
if
(
!
strncasecmp
(
name
+
4
,
(
void
*
)(
namestruct
+
3
),
name
[
0
]))
break
;
}
...
...
@@ -828,7 +828,7 @@ static HRESULT ctl2_set_custdata(
*/
static
int
ctl2_encode_typedesc
(
ICreateTypeLib2Impl
*
This
,
/* [I] The type library in which to encode the TYPEDESC. */
TYPEDESC
*
tdesc
,
/* [I] The type description to encode. */
const
TYPEDESC
*
tdesc
,
/* [I] The type description to encode. */
int
*
encoded_tdesc
,
/* [O] The encoded type description. */
int
*
width
,
/* [O] The width of the type, or NULL. */
int
*
alignment
,
/* [O] The alignment of the type, or NULL. */
...
...
@@ -3225,7 +3225,7 @@ static HRESULT WINAPI ICreateTypeLib2_fnSetLibFlags(ICreateTypeLib2 * iface, UIN
return
S_OK
;
}
static
int
ctl2_write_chunk
(
HANDLE
hFile
,
void
*
segment
,
int
length
)
static
int
ctl2_write_chunk
(
HANDLE
hFile
,
const
void
*
segment
,
int
length
)
{
DWORD
dwWritten
;
if
(
!
WriteFile
(
hFile
,
segment
,
length
,
&
dwWritten
,
0
))
{
...
...
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