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
eba5132b
Commit
eba5132b
authored
Jan 08, 2014
by
Erich E. Hoover
Committed by
Alexandre Julliard
Jan 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Make DirectDrawEnumerateEx report the driver description.
parent
639f9335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
main.c
dlls/ddraw/main.c
+5
-4
No files found.
dlls/ddraw/main.c
View file @
eba5132b
...
...
@@ -62,7 +62,6 @@ static HRESULT CALLBACK enum_callback(GUID *guid, char *description, char *drive
static
void
ddraw_enumerate_secondary_devices
(
struct
wined3d
*
wined3d
,
LPDDENUMCALLBACKEXA
callback
,
void
*
context
)
{
static
CHAR
driver_desc
[]
=
"DirectDraw HAL"
;
struct
wined3d_adapter_identifier
adapter_id
;
BOOL
cont_enum
=
TRUE
;
HRESULT
hr
=
S_OK
;
...
...
@@ -70,21 +69,23 @@ static void ddraw_enumerate_secondary_devices(struct wined3d *wined3d, LPDDENUMC
for
(
adapter
=
0
;
SUCCEEDED
(
hr
)
&&
cont_enum
;
adapter
++
)
{
char
DriverName
[
512
]
=
""
;
char
DriverName
[
512
]
=
""
,
DriverDescription
[
512
]
=
""
;
/* The Battle.net System Checker expects the GetAdapterIdentifier DeviceName to match the
* Driver Name, so obtain the DeviceName and GUID from D3D. */
memset
(
&
adapter_id
,
0x0
,
sizeof
(
adapter_id
));
adapter_id
.
device_name
=
DriverName
;
adapter_id
.
device_name_size
=
sizeof
(
DriverName
);
adapter_id
.
description
=
DriverDescription
;
adapter_id
.
description_size
=
sizeof
(
DriverDescription
);
wined3d_mutex_lock
();
hr
=
wined3d_get_adapter_identifier
(
wined3d
,
adapter
,
0x0
,
&
adapter_id
);
wined3d_mutex_unlock
();
if
(
SUCCEEDED
(
hr
))
{
TRACE
(
"Interface %d: %s
\n
"
,
adapter
,
wine_dbgstr_guid
(
&
adapter_id
.
device_identifier
));
cont_enum
=
callback
(
&
adapter_id
.
device_identifier
,
driver_desc
,
adapter_id
.
device_name
,
context
,
0
);
cont_enum
=
callback
(
&
adapter_id
.
device_identifier
,
adapter_id
.
description
,
adapter_id
.
device_name
,
context
,
0
);
}
}
}
...
...
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