Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
e2ccc978
Commit
e2ccc978
authored
9 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
server: Implement the lookup_name operation for window stations.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bfd0dff2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/winstation.c
+23
-1
23 additions, 1 deletion
server/winstation.c
with
23 additions
and
1 deletion
server/winstation.c
+
23
−
1
View file @
e2ccc978
...
...
@@ -46,6 +46,8 @@ static struct list winstation_list = LIST_INIT(winstation_list);
static
void
winstation_dump
(
struct
object
*
obj
,
int
verbose
);
static
struct
object_type
*
winstation_get_type
(
struct
object
*
obj
);
static
int
winstation_close_handle
(
struct
object
*
obj
,
struct
process
*
process
,
obj_handle_t
handle
);
static
struct
object
*
winstation_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
);
static
void
winstation_destroy
(
struct
object
*
obj
);
static
unsigned
int
winstation_map_access
(
struct
object
*
obj
,
unsigned
int
access
);
static
void
desktop_dump
(
struct
object
*
obj
,
int
verbose
);
...
...
@@ -69,7 +71,7 @@ static const struct object_ops winstation_ops =
winstation_map_access
,
/* map_access */
default_get_sd
,
/* get_sd */
default_set_sd
,
/* set_sd */
n
o
_lookup_name
,
/* lookup_name */
winstatio
n_lookup_name
,
/* lookup_name */
directory_link_name
,
/* link_name */
default_unlink_name
,
/* unlink_name */
no_open_file
,
/* open_file */
...
...
@@ -155,6 +157,26 @@ static int winstation_close_handle( struct object *obj, struct process *process,
return
(
process
->
winstation
!=
handle
);
}
static
struct
object
*
winstation_lookup_name
(
struct
object
*
obj
,
struct
unicode_str
*
name
,
unsigned
int
attr
)
{
struct
winstation
*
winstation
=
(
struct
winstation
*
)
obj
;
struct
object
*
found
;
assert
(
obj
->
ops
==
&
winstation_ops
);
if
(
memchrW
(
name
->
str
,
'\\'
,
name
->
len
/
sizeof
(
WCHAR
)
))
/* no backslash allowed in name */
{
set_error
(
STATUS_OBJECT_PATH_SYNTAX_BAD
);
return
NULL
;
}
if
((
found
=
find_object
(
winstation
->
desktop_names
,
name
,
attr
)))
name
->
len
=
0
;
return
found
;
}
static
void
winstation_destroy
(
struct
object
*
obj
)
{
struct
winstation
*
winstation
=
(
struct
winstation
*
)
obj
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment