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
a8265037
Commit
a8265037
authored
May 31, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
May 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Match temporary variables with UINT return types and fix a return value.
parent
c4a6c253
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
directx.c
dlls/d3d9/directx.c
+8
-8
No files found.
dlls/d3d9/directx.c
View file @
a8265037
...
...
@@ -103,18 +103,18 @@ static HRESULT WINAPI IDirect3D9Impl_RegisterSoftwareDevice(IDirect3D9Ex *ifac
return
hr
;
}
static
UINT
WINAPI
IDirect3D9Impl_GetAdapterCount
(
IDirect3D9Ex
*
iface
)
static
UINT
WINAPI
IDirect3D9Impl_GetAdapterCount
(
IDirect3D9Ex
*
iface
)
{
IDirect3D9Impl
*
This
=
impl_from_IDirect3D9Ex
(
iface
);
HRESULT
hr
;
UINT
ret
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
hr
=
wined3d_get_adapter_count
(
This
->
WineD3D
);
ret
=
wined3d_get_adapter_count
(
This
->
WineD3D
);
wined3d_mutex_unlock
();
return
hr
;
return
ret
;
}
static
HRESULT
WINAPI
IDirect3D9Impl_GetAdapterIdentifier
(
IDirect3D9Ex
*
iface
,
UINT
Adapter
,
...
...
@@ -153,7 +153,7 @@ static UINT WINAPI IDirect3D9Impl_GetAdapterModeCount(IDirect3D9Ex *iface, UINT
D3DFORMAT
Format
)
{
IDirect3D9Impl
*
This
=
impl_from_IDirect3D9Ex
(
iface
);
HRESULT
hr
;
UINT
ret
;
TRACE
(
"iface %p, adapter %u, format %#x.
\n
"
,
iface
,
Adapter
,
Format
);
...
...
@@ -163,10 +163,10 @@ static UINT WINAPI IDirect3D9Impl_GetAdapterModeCount(IDirect3D9Ex *iface, UINT
}
wined3d_mutex_lock
();
hr
=
wined3d_get_adapter_mode_count
(
This
->
WineD3D
,
Adapter
,
wined3dformat_from_d3dformat
(
Format
));
ret
=
wined3d_get_adapter_mode_count
(
This
->
WineD3D
,
Adapter
,
wined3dformat_from_d3dformat
(
Format
));
wined3d_mutex_unlock
();
return
hr
;
return
ret
;
}
static
HRESULT
WINAPI
IDirect3D9Impl_EnumAdapterModes
(
IDirect3D9Ex
*
iface
,
UINT
Adapter
,
...
...
@@ -468,7 +468,7 @@ static UINT WINAPI IDirect3D9ExImpl_GetAdapterModeCountEx(IDirect3D9Ex *iface,
{
FIXME
(
"iface %p, adapter %u, filter %p stub!
\n
"
,
iface
,
adapter
,
filter
);
return
E_NOTIMPL
;
return
0
;
}
static
HRESULT
WINAPI
IDirect3D9ExImpl_EnumAdapterModesEx
(
IDirect3D9Ex
*
iface
,
...
...
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