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
52083245
Commit
52083245
authored
Jan 01, 2008
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jan 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify three checks based on the unsignedness of variables.
parent
76e7cc94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
device.c
dlls/wined3d/device.c
+3
-3
No files found.
dlls/wined3d/device.c
View file @
52083245
...
...
@@ -5337,7 +5337,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPaletteEntries(IWineD3DDevice *ifa
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
j
;
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
if
(
PaletteNumber
<
0
||
PaletteNumber
>=
MAX_PALETTES
)
{
if
(
PaletteNumber
>=
MAX_PALETTES
)
{
WARN
(
"(%p) : (%u) Out of range 0-%u, returning Invalid Call
\n
"
,
This
,
PaletteNumber
,
MAX_PALETTES
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -5355,7 +5355,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPaletteEntries(IWineD3DDevice *ifa
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
j
;
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
if
(
PaletteNumber
<
0
||
PaletteNumber
>=
MAX_PALETTES
)
{
if
(
PaletteNumber
>=
MAX_PALETTES
)
{
WARN
(
"(%p) : (%u) Out of range 0-%u, returning Invalid Call
\n
"
,
This
,
PaletteNumber
,
MAX_PALETTES
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -5372,7 +5372,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPaletteEntries(IWineD3DDevice *ifa
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetCurrentTexturePalette
(
IWineD3DDevice
*
iface
,
UINT
PaletteNumber
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : PaletteNumber %u
\n
"
,
This
,
PaletteNumber
);
if
(
PaletteNumber
<
0
||
PaletteNumber
>=
MAX_PALETTES
)
{
if
(
PaletteNumber
>=
MAX_PALETTES
)
{
WARN
(
"(%p) : (%u) Out of range 0-%u, returning Invalid Call
\n
"
,
This
,
PaletteNumber
,
MAX_PALETTES
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
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