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
75de6243
Commit
75de6243
authored
Jan 09, 2008
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Set last error on enumerating display settings.
parent
43837ed2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
sysparams.c
dlls/user32/tests/sysparams.c
+11
-0
settings.c
dlls/winex11.drv/settings.c
+1
-0
No files found.
dlls/user32/tests/sysparams.c
View file @
75de6243
...
...
@@ -2532,6 +2532,7 @@ static void test_EnumDisplaySettings(void)
DEVMODE
devmode
;
DWORD
val
;
HDC
hdc
;
DWORD
num
;
memset
(
&
devmode
,
0
,
sizeof
(
devmode
));
devmode
.
dmSize
=
sizeof
(
devmode
);
...
...
@@ -2550,6 +2551,16 @@ static void test_EnumDisplaySettings(void)
}
ReleaseDC
(
0
,
hdc
);
num
=
1
;
while
(
1
)
{
SetLastError
(
0xdeadbeef
);
if
(
!
EnumDisplaySettings
(
NULL
,
num
++
,
&
devmode
))
{
DWORD
le
=
GetLastError
();
ok
(
le
==
ERROR_NO_MORE_FILES
,
"Last error on EnumDisplaySettings was %d, expected ERROR_NO_MORE_FILES
\n
"
,
le
);
break
;
}
}
}
START_TEST
(
sysparams
)
...
...
dlls/winex11.drv/settings.c
View file @
75de6243
...
...
@@ -316,6 +316,7 @@ BOOL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, DW
return
TRUE
;
}
TRACE
(
"mode %d -- not present (%s)
\n
"
,
n
,
handler_name
);
SetLastError
(
ERROR_NO_MORE_FILES
);
return
FALSE
;
}
...
...
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