Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
aec5ccfc
Commit
aec5ccfc
authored
Jun 24, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Jun 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Don't allow an empty desktop name.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42e50e44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
winstation.c
dlls/user32/tests/winstation.c
+0
-2
winstation.c
server/winstation.c
+5
-0
No files found.
dlls/user32/tests/winstation.c
View file @
aec5ccfc
...
...
@@ -296,9 +296,7 @@ static void test_handles(void)
SetLastError
(
0xdeadbeef
);
d2
=
CreateDesktopA
(
""
,
NULL
,
NULL
,
0
,
DESKTOP_ALL_ACCESS
,
NULL
);
todo_wine
ok
(
!
d2
,
"create empty desktop succeeded
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"wrong error %u
\n
"
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
...
...
server/winstation.c
View file @
aec5ccfc
...
...
@@ -513,6 +513,11 @@ DECL_HANDLER(create_desktop)
struct
unicode_str
name
=
get_req_unicode_str
();
reply
->
handle
=
0
;
if
(
!
name
.
len
)
{
set_error
(
STATUS_INVALID_HANDLE
);
return
;
}
if
((
winstation
=
get_process_winstation
(
current
->
process
,
WINSTA_CREATEDESKTOP
)))
{
if
((
desktop
=
create_desktop
(
&
name
,
req
->
attributes
,
req
->
flags
,
winstation
)))
...
...
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