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
26cc3efb
Commit
26cc3efb
authored
Apr 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Avoid using a pointer difference in a trace.
parent
cf427236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
device.c
dlls/d3d8/device.c
+3
-2
No files found.
dlls/d3d8/device.c
View file @
26cc3efb
...
...
@@ -171,18 +171,19 @@ static DWORD d3d8_allocate_handle(struct d3d8_handle_table *t, void *object, enu
if
(
t
->
free_entries
)
{
DWORD
index
=
t
->
free_entries
-
t
->
entries
;
/* Use a free handle */
entry
=
t
->
free_entries
;
if
(
entry
->
type
!=
D3D8_HANDLE_FREE
)
{
ERR
(
"Handle %u(%p) is in the free list, but has type %#x.
\n
"
,
(
entry
-
t
->
entries
)
,
entry
,
entry
->
type
);
ERR
(
"Handle %u(%p) is in the free list, but has type %#x.
\n
"
,
index
,
entry
,
entry
->
type
);
return
D3D8_INVALID_HANDLE
;
}
t
->
free_entries
=
entry
->
object
;
entry
->
object
=
object
;
entry
->
type
=
type
;
return
entry
-
t
->
entries
;
return
index
;
}
if
(
!
(
t
->
entry_count
<
t
->
table_size
))
...
...
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