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
89f52834
Commit
89f52834
authored
Jan 03, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some missing const correctness fixes.
parent
2e991c35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
enhmetafile.c
dlls/gdi/enhmetafile.c
+7
-7
cpp.c
dlls/msvcrt/cpp.c
+1
-1
safearray.c
dlls/oleaut32/safearray.c
+1
-1
No files found.
dlls/gdi/enhmetafile.c
View file @
89f52834
...
@@ -229,7 +229,7 @@ static inline BOOL is_dib_monochrome( const BITMAPINFO* info )
...
@@ -229,7 +229,7 @@ static inline BOOL is_dib_monochrome( const BITMAPINFO* info )
}
}
else
/* assume BITMAPINFOHEADER */
else
/* assume BITMAPINFOHEADER */
{
{
RGBQUAD
*
rgb
=
info
->
bmiColors
;
const
RGBQUAD
*
rgb
=
info
->
bmiColors
;
/* Check if the first color is black */
/* Check if the first color is black */
if
((
rgb
->
rgbRed
==
0
)
&&
(
rgb
->
rgbGreen
==
0
)
&&
if
((
rgb
->
rgbRed
==
0
)
&&
(
rgb
->
rgbGreen
==
0
)
&&
...
@@ -1162,28 +1162,28 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1162,28 +1162,28 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case
EMR_POLYBEZIER
:
case
EMR_POLYBEZIER
:
{
{
PEMRPOLYBEZIER
lpPolyBez
=
(
PEMRPOLYBEZIER
)
mr
;
PEMRPOLYBEZIER
lpPolyBez
=
(
PEMRPOLYBEZIER
)
mr
;
PolyBezier
(
hdc
,
(
const
LPPOINT
)
lpPolyBez
->
aptl
,
(
UINT
)
lpPolyBez
->
cptl
);
PolyBezier
(
hdc
,
(
const
POINT
*
)
lpPolyBez
->
aptl
,
(
UINT
)
lpPolyBez
->
cptl
);
break
;
break
;
}
}
case
EMR_POLYGON
:
case
EMR_POLYGON
:
{
{
PEMRPOLYGON
lpPoly
=
(
PEMRPOLYGON
)
mr
;
PEMRPOLYGON
lpPoly
=
(
PEMRPOLYGON
)
mr
;
Polygon
(
hdc
,
(
const
LPPOINT
)
lpPoly
->
aptl
,
(
UINT
)
lpPoly
->
cptl
);
Polygon
(
hdc
,
(
const
POINT
*
)
lpPoly
->
aptl
,
(
UINT
)
lpPoly
->
cptl
);
break
;
break
;
}
}
case
EMR_POLYLINE
:
case
EMR_POLYLINE
:
{
{
PEMRPOLYLINE
lpPolyLine
=
(
PEMRPOLYLINE
)
mr
;
PEMRPOLYLINE
lpPolyLine
=
(
PEMRPOLYLINE
)
mr
;
Polyline
(
hdc
,
(
const
LPPOINT
)
lpPolyLine
->
aptl
,
(
UINT
)
lpPolyLine
->
cptl
);
Polyline
(
hdc
,
(
const
POINT
*
)
lpPolyLine
->
aptl
,
(
UINT
)
lpPolyLine
->
cptl
);
break
;
break
;
}
}
case
EMR_POLYBEZIERTO
:
case
EMR_POLYBEZIERTO
:
{
{
PEMRPOLYBEZIERTO
lpPolyBezierTo
=
(
PEMRPOLYBEZIERTO
)
mr
;
PEMRPOLYBEZIERTO
lpPolyBezierTo
=
(
PEMRPOLYBEZIERTO
)
mr
;
PolyBezierTo
(
hdc
,
(
const
LPPOINT
)
lpPolyBezierTo
->
aptl
,
PolyBezierTo
(
hdc
,
(
const
POINT
*
)
lpPolyBezierTo
->
aptl
,
(
UINT
)
lpPolyBezierTo
->
cptl
);
(
UINT
)
lpPolyBezierTo
->
cptl
);
break
;
break
;
}
}
...
@@ -1191,7 +1191,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1191,7 +1191,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case
EMR_POLYLINETO
:
case
EMR_POLYLINETO
:
{
{
PEMRPOLYLINETO
lpPolyLineTo
=
(
PEMRPOLYLINETO
)
mr
;
PEMRPOLYLINETO
lpPolyLineTo
=
(
PEMRPOLYLINETO
)
mr
;
PolylineTo
(
hdc
,
(
const
LPPOINT
)
lpPolyLineTo
->
aptl
,
PolylineTo
(
hdc
,
(
const
POINT
*
)
lpPolyLineTo
->
aptl
,
(
UINT
)
lpPolyLineTo
->
cptl
);
(
UINT
)
lpPolyLineTo
->
cptl
);
break
;
break
;
}
}
...
@@ -1478,7 +1478,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
...
@@ -1478,7 +1478,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
{
{
PEMRPOLYDRAW
lpPolyDraw
=
(
PEMRPOLYDRAW
)
mr
;
PEMRPOLYDRAW
lpPolyDraw
=
(
PEMRPOLYDRAW
)
mr
;
PolyDraw
(
hdc
,
PolyDraw
(
hdc
,
(
const
LPPOINT
)
lpPolyDraw
->
aptl
,
(
const
POINT
*
)
lpPolyDraw
->
aptl
,
lpPolyDraw
->
abTypes
,
lpPolyDraw
->
abTypes
,
(
INT
)
lpPolyDraw
->
cptl
);
(
INT
)
lpPolyDraw
->
cptl
);
...
...
dlls/msvcrt/cpp.c
View file @
89f52834
...
@@ -1121,7 +1121,7 @@ void* MSVCRT___RTDynamicCast(void *cppobj, int unknown,
...
@@ -1121,7 +1121,7 @@ void* MSVCRT___RTDynamicCast(void *cppobj, int unknown,
int
i
;
int
i
;
const
rtti_object_locator
*
obj_locator
=
get_obj_locator
(
cppobj
);
const
rtti_object_locator
*
obj_locator
=
get_obj_locator
(
cppobj
);
const
rtti_object_hierarchy
*
obj_bases
=
obj_locator
->
type_hierarchy
;
const
rtti_object_hierarchy
*
obj_bases
=
obj_locator
->
type_hierarchy
;
const
rtti_base_descriptor
*
*
base_desc
=
obj_bases
->
base_classes
->
bases
;
const
rtti_base_descriptor
*
const
*
base_desc
=
obj_bases
->
base_classes
->
bases
;
if
(
TRACE_ON
(
msvcrt
))
dump_obj_locator
(
obj_locator
);
if
(
TRACE_ON
(
msvcrt
))
dump_obj_locator
(
obj_locator
);
...
...
dlls/oleaut32/safearray.c
View file @
89f52834
...
@@ -154,7 +154,7 @@ static inline DWORD SAFEARRAY_GetHiddenDWORD(SAFEARRAY* psa)
...
@@ -154,7 +154,7 @@ static inline DWORD SAFEARRAY_GetHiddenDWORD(SAFEARRAY* psa)
/* Get the number of cells in a SafeArray */
/* Get the number of cells in a SafeArray */
static
ULONG
SAFEARRAY_GetCellCount
(
const
SAFEARRAY
*
psa
)
static
ULONG
SAFEARRAY_GetCellCount
(
const
SAFEARRAY
*
psa
)
{
{
SAFEARRAYBOUND
*
psab
=
psa
->
rgsabound
;
const
SAFEARRAYBOUND
*
psab
=
psa
->
rgsabound
;
USHORT
cCount
=
psa
->
cDims
;
USHORT
cCount
=
psa
->
cDims
;
ULONG
ulNumCells
=
1
;
ULONG
ulNumCells
=
1
;
...
...
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