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
88dcf834
Commit
88dcf834
authored
Nov 17, 2005
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made test loadable on win95 again (EnumDisplayDevicesA not present).
parent
d15de714
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
monitor.c
dlls/user/tests/monitor.c
+4
-1
No files found.
dlls/user/tests/monitor.c
View file @
88dcf834
...
...
@@ -24,6 +24,7 @@
#include "winuser.h"
static
HMODULE
hdll
;
static
BOOL
(
WINAPI
*
pEnumDisplayDevicesA
)(
LPCSTR
,
DWORD
,
LPDISPLAY_DEVICEA
,
DWORD
);
static
BOOL
(
WINAPI
*
pEnumDisplayMonitors
)(
HDC
,
LPRECT
,
MONITORENUMPROC
,
LPARAM
);
static
BOOL
(
WINAPI
*
pGetMonitorInfoA
)(
HMONITOR
,
LPMONITORINFO
);
...
...
@@ -33,6 +34,7 @@ static void init_function_pointers(void)
if
(
hdll
)
{
pEnumDisplayDevicesA
=
(
void
*
)
GetProcAddress
(
hdll
,
"EnumDisplayDevicesA"
);
pEnumDisplayMonitors
=
(
void
*
)
GetProcAddress
(
hdll
,
"EnumDisplayMonitors"
);
pGetMonitorInfoA
=
(
void
*
)
GetProcAddress
(
hdll
,
"GetMonitorInfoA"
);
}
...
...
@@ -61,10 +63,11 @@ static void test_enumdisplaydevices(void)
DWORD
primary_num
=
-
1
,
num
=
0
;
dd
.
cb
=
sizeof
(
dd
);
if
(
pEnumDisplayDevicesA
==
NULL
)
return
;
while
(
1
)
{
BOOL
ret
;
ret
=
EnumDisplayDevicesA
(
NULL
,
num
,
&
dd
,
0
),
"EnumDisplayDevices fails
\n
"
;
ret
=
pEnumDisplayDevicesA
(
NULL
,
num
,
&
dd
,
0
)
;
ok
(
ret
||
num
!=
0
,
"EnumDisplayDevices fails with num == 0
\n
"
);
if
(
!
ret
)
break
;
if
(
dd
.
StateFlags
&
DISPLAY_DEVICE_PRIMARY_DEVICE
)
...
...
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