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
035b79eb
Commit
035b79eb
authored
Jun 29, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the device name stored in the adapter in wined3d_get_adapter_identifier().
parent
d8434475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
directx.c
dlls/wined3d/directx.c
+3
-8
No files found.
dlls/wined3d/directx.c
View file @
035b79eb
...
...
@@ -3186,17 +3186,12 @@ HRESULT CDECL wined3d_get_adapter_identifier(const struct wined3d *wined3d,
/* Note that d3d8 doesn't supply a device name. */
if
(
identifier
->
device_name_size
)
{
static
const
char
*
device_name
=
"
\\\\
.
\\
DISPLAY1"
;
/* FIXME: May depend on desktop? */
len
=
strlen
(
device_name
);
if
(
len
>=
identifier
->
device_name_size
)
if
(
!
WideCharToMultiByte
(
CP_ACP
,
0
,
adapter
->
DeviceName
,
-
1
,
identifier
->
device_name
,
identifier
->
device_name_size
,
NULL
,
NULL
))
{
ERR
(
"
Device name size too small.
\n
"
);
ERR
(
"
Failed to convert device name, last error %#x.
\n
"
,
GetLastError
()
);
return
WINED3DERR_INVALIDCALL
;
}
memcpy
(
identifier
->
device_name
,
device_name
,
len
);
identifier
->
device_name
[
len
]
=
'\0'
;
}
identifier
->
driver_version
.
u
.
HighPart
=
adapter
->
driver_info
.
version_high
;
...
...
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