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
64f2c034
Commit
64f2c034
authored
Jan 24, 2010
by
Justin Chevrier
Committed by
Alexandre Julliard
Jan 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: EnumDisplayDevicesW, populate DeviceID member.
parent
f623e3ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
misc.c
dlls/user32/misc.c
+3
-1
No files found.
dlls/user32/misc.c
View file @
64f2c034
...
...
@@ -277,6 +277,8 @@ DWORD WINAPI SetLogonNotifyWindow(HWINSTA hwinsta,HWND hwnd)
static
const
WCHAR
primary_device_name
[]
=
{
'\\'
,
'\\'
,
'.'
,
'\\'
,
'D'
,
'I'
,
'S'
,
'P'
,
'L'
,
'A'
,
'Y'
,
'1'
,
0
};
static
const
WCHAR
primary_device_string
[]
=
{
'X'
,
'1'
,
'1'
,
' '
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
'i'
,
'n'
,
'g'
,
' '
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
primary_device_deviceid
[]
=
{
'P'
,
'C'
,
'I'
,
'\\'
,
'V'
,
'E'
,
'N'
,
'_'
,
'0'
,
'0'
,
'0'
,
'0'
,
'&'
,
'D'
,
'E'
,
'V'
,
'_'
,
'0'
,
'0'
,
'0'
,
'0'
,
0
};
/***********************************************************************
* EnumDisplayDevicesA (USER32.@)
...
...
@@ -331,7 +333,7 @@ BOOL WINAPI EnumDisplayDevicesW( LPCWSTR lpDevice, DWORD i, LPDISPLAY_DEVICEW lp
DISPLAY_DEVICE_VGA_COMPATIBLE
;
if
(
lpDisplayDevice
->
cb
>=
offsetof
(
DISPLAY_DEVICEW
,
DeviceID
)
+
sizeof
(
lpDisplayDevice
->
DeviceID
))
lpDisplayDevice
->
DeviceID
[
0
]
=
0
;
memcpy
(
lpDisplayDevice
->
DeviceID
,
primary_device_deviceid
,
sizeof
(
primary_device_deviceid
))
;
if
(
lpDisplayDevice
->
cb
>=
offsetof
(
DISPLAY_DEVICEW
,
DeviceKey
)
+
sizeof
(
lpDisplayDevice
->
DeviceKey
))
lpDisplayDevice
->
DeviceKey
[
0
]
=
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