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
d50189c1
Commit
d50189c1
authored
Feb 23, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Avoid signed-unsigned integer comparisons.
parent
209b58c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
vmr9.c
dlls/quartz/vmr9.c
+4
-8
No files found.
dlls/quartz/vmr9.c
View file @
d50189c1
...
...
@@ -1495,7 +1495,7 @@ static HRESULT WINAPI VMR9SurfaceAllocatorNotify_ChangeD3DDevice(IVMRSurfaceAllo
static
HRESULT
WINAPI
VMR9SurfaceAllocatorNotify_AllocateSurfaceHelper
(
IVMRSurfaceAllocatorNotify9
*
iface
,
VMR9AllocationInfo
*
allocinfo
,
DWORD
*
numbuffers
,
IDirect3DSurface9
**
surface
)
{
VMR9Impl
*
This
=
impl_from_IVMRSurfaceAllocatorNotify9
(
iface
);
INT
i
;
DWORD
i
;
HRESULT
hr
=
S_OK
;
FIXME
(
"(%p/%p)->(%p, %p => %u, %p) semi-stub
\n
"
,
iface
,
This
,
allocinfo
,
numbuffers
,
(
numbuffers
?
*
numbuffers
:
0
),
surface
);
...
...
@@ -1554,11 +1554,7 @@ static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AllocateSurfaceHelper(IVMRSurfa
}
else
{
ERR
(
"Allocation failed
\n
"
);
for
(
--
i
;
i
>=
0
;
--
i
)
{
IDirect3DSurface9_Release
(
surface
[
i
]);
}
for
(
;
i
>
0
;
--
i
)
IDirect3DSurface9_Release
(
surface
[
i
-
1
]);
*
numbuffers
=
0
;
}
return
hr
;
...
...
@@ -1691,7 +1687,7 @@ static ULONG WINAPI VMR9_ImagePresenter_Release(IVMRImagePresenter9 *iface)
if
(
!
refCount
)
{
int
i
;
DWORD
i
;
TRACE
(
"Destroying
\n
"
);
CloseHandle
(
This
->
ack
);
IDirect3D9_Release
(
This
->
d3d9_ptr
);
...
...
@@ -2091,7 +2087,7 @@ static HRESULT VMR9_SurfaceAllocator_UpdateDeviceReset(VMR9DefaultAllocatorPrese
{
struct
VERTEX
t_vert
[
4
];
UINT
width
,
height
;
INT
i
;
unsigned
int
i
;
void
*
bits
=
NULL
;
D3DPRESENT_PARAMETERS
d3dpp
;
HRESULT
hr
;
...
...
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